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.
IndexProgramming Questions & HelpPrograms › Re: Seeking collaboration on simple program
Page Index Toggle Pages: 1
Re: Seeking collaboration on simple program (Read 263 times)
Re: Seeking collaboration on simple program
Feb 20th, 2008, 5:29am
 
hm, cross posting definitely seems to give your question a broader exposure, but is not considered to be an appreciated approach when asking for help. but to collaborate on your simple program, this might help:

Code:

float f;
float c;

void setup() {
size(400, 400);
background(10, 180, 215);
PFont fontA = loadFont("Calibri-BoldItalic-48.vlw");
textFont(fontA, 32);
}

void draw() {
// get a fahrenheit value.
f = mouseX - ( width / 2 );
// convert fahrenheit into celcius
c = (f - 32) / 1.8;

fill(115, 80, 80);
rect(150, 20, 85, 65);

fill(215, 180, 180);
// display the celcius value.
text("c= "+c, 155, 40);

fill(175, 17, 250);
rect(150, 220, 85, 65);

fill(75, 217, 150);
// display the fahrenheit value.
text("f= "+f, 155, 245) ;
}



you can easily format source code by putting [code] at the beginning and [/code ] at the end of the code  when posting a message.
Re: Seeking collaboration on simple program
Reply #1 - Feb 20th, 2008, 5:54am
 
put
Code:

background(10, 180, 215);

right after
Code:

void draw() {


this will overwrite the framebuffer with the given color and the blobbing will disappear.
Page Index Toggle Pages: 1