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()
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 September 01, 2022 16:36:02pm UTC