|
Author |
Topic: tint seems to break when exported to web (Read 442 times) |
|
thera
|
tint seems to break when exported to web
« on: Nov 13th, 2003, 5:38pm » |
|
hello, i have a very simple p5 applet that compiles and runs fine on my machine, but as soon as i export it, it breaks, and i can't seems to figure out why. the code is pretty simple, it just tints the image based on values in an array. the only hint of something wrong is at the bottom of the applet window (on the web) it says something about "applet data_levels_change notinited". (or is that supposed to be notinted?) here is the main loop: void loop() { if(index > theData.length -4) { index =0; } //zz = abs(theData[index] -40); rr = abs(theData[index] +45); gg = abs(theData[index+1] +35); bb = theData[index+2]+theData[index+3]; //fill(rr,gg,bb,random(100)); tint(rr,gg,bb,70); image(back, 0,0); index+=4; if(keyPressed) { if(key == 'S') { saveFrame(); } } } here is the broken applet + source code link: http://misstherab.net/moisture/data_levels_change/applet i don't understand why it runs perfectly when i do it straight from the p5 prog, but is broken here... thanks much
|
|
|
|
thera
|
Re: tint seems to break when exported to web
« Reply #2 on: Nov 13th, 2003, 8:33pm » |
|
wow, ok thanks for pointing that out to me, i'm rather silly. forgot about the whole case-sensitivity thing, i was referring to my image as .jpg instead of .JPG as it was actually named. Thanks!!
|
|
|
|
|