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():
    py5.size(200, 200, py5.P2D)
    global pg
    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 Java method: PGraphics.endDraw

Syntax

end_draw() -> None

Updated on September 11, 2021 16:51:34pm UTC