You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to make a triangle. Seems like the best way to do this is with drawVertices. However, I can't get this to work and there are not any examples. I would love your input on this.
import skia
from IPython.display import display
surface = skia.Surface(256, 256)
with surface as canvas:
color = skia.ColorSetRGB(0, 0, 0)
paint = skia.Paint(Color=skia.Color(0, 0, 255))
p1 = skia.Point(0, 0)
p2 = skia.Point(100, 0.0)
p3 = skia.Point(50, 100)
test = skia.Vertices([p1,p2,p3])
Canvas.drawVertices(test,paint)
image = surface.makeImageSnapshot()
display(image)
Im trying to make a triangle. Seems like the best way to do this is with drawVertices. However, I can't get this to work and there are not any examples. I would love your input on this.
I get the error
The text was updated successfully, but these errors were encountered: