trinketapp / processing.sk

Processing.js with skulpt sauce
10 stars 3 forks source link

Initialise processing when a function is called before it's initialised. #11

Open albertjan opened 7 years ago

albertjan commented 7 years ago

This means we don't necessarily need a setup function and a run function.

albertjan commented 6 years ago

@eah13 I've been percolating on this issue a little and there are a few thoughts.

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.

eah13 commented 6 years ago

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.