| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### tint()
Examples |  |
    BImage b;
    b = loadImage("laDefense.jpg");
    image(b, 0, 0);
    // Tint blue
    tint(0, 153, 204);
    image(b, 50, 0);
    BImage 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()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |