FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   tint seems to break when exported to web
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: tint seems to break when exported to web  (Read 442 times)
thera

Email
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
 
arielm

WWW
Re: tint seems to break when exported to web
« Reply #1 on: Nov 13th, 2003, 8:16pm »

it seems that your applet can find the "formsAug03.jpg" image, that should be at this place:
 
http://misstherab.net/moisture/data_levels_change/applet/formsAug03.jpg
 
(but isn't there)
 

Ariel Malka | www.chronotext.org
thera

Email
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!!
 
Pages: 1 

« Previous topic | Next topic »