3 ms·
Looking 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
by legutierr 12y ago
Looking 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...