Closed anthonygalea closed 5 years ago
To generate api.clj you need to run this script. Generating snippets-data is a little bit more involved and described here.
Yes, I stop it after the first frame otherwise running all examples at once requires too much cpu. There are few ways we could address it:
q/no-loop
at the end of draw and mark them with ; DELETE
string. no-loop
will be removed when preparing sketch for showing to user.I'd prefer to do 1 and if it's not possible do 2. I don't like 3 as it will look "empty".
I'm going to merge this pull request as I want to experiment with 3.0.0 on quil-site (in particular to generate cache for self-hosted cljs).
This pull request is to prepare for adapting quil-site after the migration to p5js. The About tab, Examples tab and Editor seem to work. However:
api-2.8.0.clj
andsnippets-data-2.8.0.clj
? Is it running something like this form the quil repo?onFrameEnd
hook. Can't find anything like it in p5js. Am I understanding correctly that the purpose ofpause-after-next-frame
is to render just the first frame of the sketches?