We are about to switch to a new forum software. Until then we have removed the registration on this forum.
i just downloaded p5.collide2d.js and i wanted to know how to "change" the index.html file for default sketches to include a line to load said library.
only problem is, i don't know where the default sketch.js and index.html are. only thing i found was the template for processing's p5.js mode ( it's inside a folder called template) but it doesn't apply to p5 itself
any help is much appreciated
Answers
I don't have "p5.js Mode" b/c I'm still using PDE v3.1.2. 3:-O
Instead I use online JS editors for it. :-j
Anyways, here's my "index.html" minimum template to load p5.js + p5.collide2d libraries: :ar!
Also posted an example online for n1 to see it in action: :bz
http://CodePen.io/GoSubRoutine/pen/YpmRRR/right/?editors=101
And below's the whole "sketch.js" file: O:-)
hey goto, where is that html file at though? mine is at:
C:\Users-------\Documents\Processing\modes\p5jsMode\template
and there inside template, are the sketch.js, index.html and libraries folder.
is that right?
@P14082003 -- did you find an answer to this question? If not, this would be a great question to ask the p5 developers as an issue: