pargs

List of strings passed to the Sketch through the call to run_sketch().

Examples

1
2
3
4
def setup():
    py5.background(py5.pargs[0])

py5.run_sketch(sketch_args=["#FF0000"])

Description

List of strings passed to the Sketch through the call to run_sketch(). Only passing strings is allowed, but you can convert string types to something else to make this more useful.

Underlying Java field: args

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