We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I found an old sphere texture example here and I am trying to make it work in javascript mode. When I don't include the line
@pjs preload = "MercatorMap.jpg"`
at the begging the image does not load, and when I do include it I get an "unexpected token: preload" error. Has there been an undocumented change in preloading images, or is there something else I'm missing? Thank you, Kelson Ball
Answers
Read: http://processingjs.org/articles/p5QuickStart.html#synchronousIO
Example: http://studio.processingtogether.com/sp/pad/export/ro.9$MTikWt80-9w/latest
put a /* comment */ around it. the js parser will see it and use it, but the processing parser won't see it.