 |
 |
 |
 |
| 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() |
|
|