We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi. So, I'm pretty much a noob here, and I was trying to get some flashlight effect code but it won't run. I have to use loadPixels but it won't recognize the image variable, saying "sala3 is not a global variable". I know I may be explaining horribly bad but I really don't know how to out the appc. in order to get it working. Thanks!
Answers
Also, how can I upload the code so you can see it?
Basically you copy and paste the code into the form comment edit box but tou should see the How to format code and text discussion and also at the Technical FAQs discussion before posting any more comments.
Thanks @quark, that came in handy. I've read everything on those posts yet I still don't manage to figure out what exactly is my problem. For anyone who might just get an idea I will put it down here:
Line 22 should be
appc.pixels[loc] = color(r*factor, g*factor, b*factor);
You should not be getting the error message "sala3 is not a global variable", are you in fact still getting it?