finished#
Boolean variable reflecting if the Sketch has stopped permanently.
Examples#
import time
def draw():
py5.rect(py5.random_int(py5.width), py5.random_int(py5.height), 10, 10)
py5.run_sketch(block=False)
py5.println('sketch has stopped:', py5.finished)
time.sleep(10)
py5.exit_sketch()
py5.println('sketch has stopped:', py5.finished)
Description#
Boolean variable reflecting if the Sketch has stopped permanently.
Underlying Processing field: finished
Updated on December 25, 2023 17:40:34pm UTC