toolness / p5.js-widget

A reusable widget for embedding editable p5 sketches in web pages.
https://toolness.github.io/p5.js-widget/
GNU Lesser General Public License v2.1
162 stars 44 forks source link

p5 is not defined #67

Open AdoHaha opened 7 years ago

AdoHaha commented 7 years ago

Hi, when I want to use vectors for example: a= new p5.Vector(576, 324); p5.Vector.add(v1, v2) or in any other way ( other than through createVector function) I get this error: Uncaught ReferenceError: p5 is not defined

alonss0 commented 5 years ago

I don't know if it can help u at this point, but I fixed it loading the p5.js library in the head of the html doc.