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 › tint() but no color change, only alpha
Page Index Toggle Pages: 1
tint() but no color change, only alpha? (Read 613 times)
tint() but no color change, only alpha?
Oct 15th, 2007, 2:05pm
 
hello,

this is my first post here, salut.



i wanna fade in and out an image to make a glow effect.
so i tried to use tint();

it works fine, but a small problem. i have to give as an argument also a color to tint the image. but i only wanna give an alpha changement. how can i do that?


thank for an answer.

n
Re: tint() but no color change, only alpha?
Reply #1 - Oct 15th, 2007, 2:20pm
 
if i remember correct passing white as color will do that ..

tint( 255, 120 ); // white, alpha 120

F
Re: tint() but no color change, only alpha?
Reply #2 - Oct 15th, 2007, 2:22pm
 
thank, now it works
Page Index Toggle Pages: 1