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 & HelpSyntax Questions › What is ALPHA How does it work
Page Index Toggle Pages: 1
What is ALPHA ? How does it work ? (Read 595 times)
What is ALPHA ? How does it work ?
Oct 16th, 2006, 5:17am
 
What is ALPHA ? How does it work ?

I use instructions like the following,
and changing alpha's value gives me weird results I don't understand,
sometimes it changes the background color,
or the background color onscreen is different than the background color of the image I get from saveFrame().

colorMode(RGB,255);
//background(127,127,127);
background(255,255,255);

//stroke(r,g,b,alpha)
//stroke(75,150,225,75);
stroke(75,150,225,50);
point(x,y);
saveFrame(out_file);
Re: What is ALPHA ? How does it work ?
Reply #1 - Oct 16th, 2006, 1:45pm
 
Alpha is the degree of opacity that you get in a colour. Depending on the alpha value you give to a coloured pixel, it becomes that much transparent.
Page Index Toggle Pages: 1