lerpColor()

Color / Creating & Reading

Description

Calculates a color between two colors at a specific increment.

Syntax

color lerpColor(color c1, color c2, float t)

Parameters

NameTypeDescription
c1colorinterpolate from this color
c2colorinterpolate to this color
tfloatbetween 0.0 and 1.0

Returns

color

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...