pargs#

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

Examples#

1def setup():
2    py5.background(py5.pargs[0])
3
4py5.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