Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
albertjan opened this issue Nov 2, 2017 · 2 comments

Comments

@albertjan
Copy link
Contributor

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

@albertjan
Copy link
Contributor Author

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

  • size can only be called from within setup
  • you have to assign setup at initialisation
  • if we initialise before we've executed all the code the setup function will get called before any other processing function.
  • we could identify the "pure" function like 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.

@eah13
Copy link
Member

eah13 commented Jan 23, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants