finished#

Boolean variable reflecting if the Sketch has stopped permanently.

Examples#

 1import time
 2
 3def draw():
 4    py5.rect(py5.random_int(py5.width), py5.random_int(py5.height), 10, 10)
 5
 6
 7py5.run_sketch()
 8py5.println('sketch has stopped:', py5.finished)
 9time.sleep(10)
10
11py5.exit_sketch()
12py5.println('sketch has stopped:', py5.finished)

Description#

Boolean variable reflecting if the Sketch has stopped permanently.

Underlying Processing field: finished

Updated on November 12, 2021 11:30:58am UTC