Open albertjan opened 7 years ago
@eah13 I've been percolating on this issue a little and there are a few thoughts.
size
can only be called from within setup
setup
function will get called before any other processing function.color
and initialise a fantom processing sketch to call those functions on.All in all it looks like we'll be cutting corners whatever we choose to do. The last thing I'm thinking about is wrapping the entire call of skulpt into the sketch of processing.js. But I haven't completely thought through all the consequences.
Hmm. Thanks for adding initial thoughts. We'll probably need a brainstorm powwow for this, along with some examples to run in Processing.py and see what they do. Or, we could accept the limitation and sub out some bespoke errors for when processing functions are called outside functions in general.
This means we don't necessarily need a setup function and a run function.