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 Processing field: args

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