Setting Properties from Sketch #514
-
I need to set the state of a property from within the p5 sketch. Is this possible? |
Beta Was this translation helpful? Give feedback.
Answered by
DianaVallverdu-NUA
Jul 4, 2025
Replies: 1 comment 1 reply
-
The state of a property within the sketch? Just pass a callback that edits that variable you want to be changed as a prop and then use that callback from within the sketch. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, just realized that I missed
p5.updateWithProps
function. Apologies.