We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I tried to use p5js with https://jsfiddle.net/ and failed. What is it that I did wrong?
press here
There are better places for testing & hosting p5.js sketches btW: :-\"
The problem w/ https://JSFiddle.net is that the sketch needs to be executed before "p5.js" file is loaded. So the sketch should go to the HTML section as well: http://JSFiddle.net/hn5t26sg/1/
<script src=http://p5js.org/js/p5.min.js defer></script> <script> function setup() { ellipse(width>>1, height>>1, width>>1, height>>1); } </script>
Thank you for the links! Great sites, will use those.
Answers
There are better places for testing & hosting p5.js sketches btW: :-\"
The problem w/ https://JSFiddle.net is that the sketch needs to be executed before "p5.js" file is loaded.
So the sketch should go to the HTML section as well: http://JSFiddle.net/hn5t26sg/1/
Thank you for the links! Great sites, will use those.