gizeh python

Solutions on MaxInterview for gizeh python by the best coders in the world

showing results for - "gizeh python"
Erik
24 Feb 2020
1# Let's draw a red circle !
2import gizeh
3surface = gizeh.Surface(width=320, height=260) # in pixels
4circle = gizeh.circle(r=30, xy=[40,40], fill=(1,0,0))
5circle.draw(surface) # draw the circle on the surface
6surface.write_to_png("circle.png") # export the surface as a PNG
7