Hi,
I am trying to get a sketch to run in a browser using Processing.js and Chrome.
The sketch uses three pde files, a font, image and text file for loadStrings(). It works fine through processing
I am using wampserver to run on the localhost. The grey area loads on the browser but the sketch fails.
The reference error says:
What does this mean? Does it mean there's a problem with line 22 in setup() of the pde file?
I have preloaded the font and image as indicated in the documentation. I also use a txt file to loadStrings but i didn't think this needs to be preloaded. Here are the preload comments:
/* @pjs preload="milkyway.jpg"; */
/* @pjs font="Arial.ttf"; */
My index html page is
<script src="processing.js"></script>
<canvas data-processing-sources="camino.pde" "place.pde" "twinkly.pde"></canvas>
here is a zip containing all the files:
www.maxlivesey.co.uk/camino.zip
Any help gratefully received
1