sketch to website starting problems (Comparator and JavaScript)
in
Processing with Other Languages
•
1 month ago
Hello,
Just trying to get my head around workflows for getting my sketch onto a website.
Using Processing 2.0 in JavaScript mode on windows 7 64 going into chrome or firefox
One method I am trying is to switch to javascript mode and just run the sketch. It works with a sample ball sketch from the processingjs.org site, but I cannot quite get my own sketch to run.
It comes up with the correct background and does not crash, but the text does not appear.
In the sketch I do load up a list.txt and helvetica font, and have included this in the sketch as follows;
/* @pjs font="Helvetica";
globalKeyEvents=true;
*/
/* @pjs preload="List.txt";
*/
Are there any other obvious no-nos I should look out for?
In the sketch I have some Comparator classes implementing Comparator....other than that, i don't know what to change.
Any thoughts, or should I try processingjs.org? - it's just their site seems a bit opaque for help other than Pomax's walkthrough.
BTW, is there any reason I would download the code from there?
Cheers.
1