FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

tint()

   
Examples  
PImage b; 
b = loadImage("laDefense.jpg"); 
image(b, 0, 0); 
// Tint blue 
tint(0, 153, 204); 
image(b, 50, 0); 
PImage b; 
b = loadImage("laDefense.jpg"); 
image(b, 0, 0); 
// Tint blue and set transparency 
tint(0, 153, 204, 126); 
image(b, 50, 0); 
Description   Sets the fill value for displaying images. Images can be tinted to specified colors or made transparent by setting the alpha.
   
Syntax  
tint(gray)
tint(gray, alpha)
tint(value1, value2, value3)
tint(value1, value2, value3, alpha)
tint(color)
   
Parameters  
gray   int or float: any valid number

alpha   int or float: opacity of the image

value1   int or float: red or hue value

value2   int or float: green or saturation value

value3   int or float: blue or brightness value

color   color: any value of the color datatype

   
Returns   None
   
Usage   Web & Application
   
Related   noTint()
image()
 
 






   
 
Updated: Fri Jul 15 16:36:16 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info