tint()

Image / Loading & Displaying

Description

Sets the fill value for displaying images. Images can be tinted to specified colors.

Syntax

void tint(float gray) void tint(float gray, float a) void tint(float r, float g, float b) void tint(float r, float g, float b, float a)

Parameters

NameTypeDescription
grayfloatgrayscale value
rfloatred component
gfloatgreen component
bfloatblue component
afloatalpha (optional)

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...