3 ms·
Looking for examples / demos.
by msane 12y ago
Looking for examples / demos.
- html5web 12y agohttp://p5js.org/learn/#demos http://p5js.org/learn/#demos
- justboxing 12y agoDemos: http://p5js.org/learn/#demos http://p5js.org/learn/#demos Getting Started Guide: http://p5js.org/get-started/ http://p5js.org/get-started/ Transition Code: https://github.com/lmccart/p5.js/wiki/Processing-transition https://github.com/lmccart/p5.js/wiki/Processing-transition
- legutierr 12y agoLooking through those examples, it seems like all of the functions that p5 provides are dropped into the global scope. Do you know if there is any easy way to cause all of those functions to live inside a "p5" object or something?
- saaaam 12y agoYes - you can instantiate a p5 object: http://p5js.org/learn/examples/Instance_Mode_Instantiation.php http://p5js.org/learn/examples/Instance_Mode_Instantiation.p...
- alok-g 12y agoBug in example "Interactivity 1": In function "mousePressed", distance is checked from (360, 240) when the ellipse is actually placed at (360, 200). Can anyone suggest how to read back the actual center location of the eclipse programmatically inside the "mousePressed" function so that the center coordinates are not duplicated? (Note: I am new to JavaScript.)