Py5Graphics.end_draw()
Contents
Py5Graphics.end_draw()¶
Finalizes the rendering of a Py5Graphics
object so that it can be shown on screen.
Examples¶
1 2 3 4 5 6 7 8 9 10 11 12 13 | def setup():
global pg
py5.size(200, 200, py5.P2D)
pg = py5.create_graphics(80, 80, py5.P2D)
pg.begin_draw()
pg.background(102)
pg.stroke(255)
pg.line(20, 20, 80, 80)
pg.end_draw()
def draw():
py5.image(pg, 10, 10)
|
Description¶
Finalizes the rendering of a Py5Graphics
object so that it can be shown on screen.
Underlying Processing method: PGraphics.endDraw