We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
I made this random bandname and coverdesigner and would like to run it online with a browser. Now the problem is that it does not load the sketch in chrome. ErrorMsg: "Uncaught ReferenceError: sketchPath is not defined
"setup @ VM297:67 Processing.Processing.executeSketch @ processing.js:21508 Processing.Processing @ processing.js:21535 callback @ processing.js:950 Processing.loadSketchFromSources.xhr.onreadystatechange @ processing.js:929"
I'm loading some Java libraries (maybe not all are necessary or can be replaced) import java.io.File; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.Arrays; import java.nio.file.Paths;
Also it is loading an image from google every time the mouse is clicked. Does it even make sense to work on it as pjs needs the image to be loaded before the sketch?
Here is the website: http://matthias.pitscher.pw/coverdesigner.html and github: https://github.com/astreinerBaum/astreinerbaum.github.io/tree/master/PDE/CoverDesigner
Thanks for the help! Pitscher
Answers
Java to JavaScript Mode conversion is very restrictive.
We gotta stick w/ Processing's API mostly:
http://ProcessingJS.org/reference/