finished

Boolean variable reflecting if the Sketch has stopped permanently.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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 Java field: finished

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