We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › Exported applet looks different
Page Index Toggle Pages: 1
Exported applet looks different (Read 927 times)
Exported applet looks different
May 25th, 2005, 2:34am
 
Hi,

When running directly in Processing, the following simple code draws a white square surrounded by a grey frame:

void setup(){
 size(240,240);
 noStroke();
 fill(240);
 rect(0,0,240,20);
 rect(0,220,240,20);
 rect(0,20,20,200);
 rect(220,20,20,200);
 fill(255);
 rect(20,20,200,200);
}

but after export the gray frame doesn't show up. I'm working on Windows XP SP2, IE 6.0 and tried different Java runtimes (1.3.1, 1.4.2, 1.5.0).  This is affecting quite a lot of applets on my site. I haven't been able to check on other machines.

The following applet should show 4 white squares in a gray background.

http://www.wmute.org/Motion/D5LV/D5LVsmall.html

Does anybody else miss the gray background?

seeya,

Frederik
www.wmute.org

Re: Exported applet looks different
Reply #1 - May 25th, 2005, 3:08am
 
what's your monitor bit depth set at? is it 16 bit (thousands) instead of 32 (millions) ?
Re: Exported applet looks different
Reply #2 - May 25th, 2005, 7:20pm
 
No, both monitors were at 32bit. But what's weird is this: I switched to 16 and back to 32. Now it works. Probably has something to do with the half-baked way Xp handels dual monitors...

Anyway, is there a way to work around the 16bit/32bit difference?

Thanks,

F.
Re: Exported applet looks different
Reply #3 - May 25th, 2005, 9:24pm
 
it's a java issue unfortunately. processing does everything at 32 bit and then is at the mercy of the java vm & os for how things render. you might google around a bit since it must be a known issue for java.
Page Index Toggle Pages: 1