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 › Adding tint to color
Page Index Toggle Pages: 1
Adding tint to color (Read 612 times)
Adding tint to color
Jan 23rd, 2007, 5:53pm
 
Hi,
I am trying to add tint to a set of colors/RGB values (Like the tint property on objects in Flash). I understand that the tint() function is only for images.  
Any assistance on figuring out how to implement it would be much appreciated.
Re: Adding tint to color
Reply #1 - Jan 26th, 2007, 12:38pm
 
Tinting is changing the Colour(Hue)

void draw(){
 noStroke();
 colorMode(HSB, 100);
 color c = color(mouseX, 100, 100);
 fill(c);
 rect(0, 0, 100, 100);
}

http://processing.org/reference/colorMode_.html
Page Index Toggle Pages: 1