Name

lerpColor()

Examples
stroke(255)
background(51)
fromC = color(204, 102, 0)
toC = color(0, 102, 153)
interA = lerpColor(fromC, toC, .33)
interB = lerpColor(fromC, toC, .66)
fill(fromC)
rect(10, 20, 20, 60)
fill(interA)
rect(30, 20, 20, 60)
fill(interB)
rect(50, 20, 20, 60)
fill(toC)
rect(70, 20, 20, 60)
Description
Syntax
lerpColor(c1, c2, amt)
Parameters
c1
c2
amt
Related color()
lerp()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License