(defn lerp-color
"
Calculates a color or colors between two color at a specific increment.
The amt parameter is the amount to interpolate between the two values
where 0.0 equal to the first point, 0.1 is very near the first point
0.5 is half-way in between, etc.
Parameters:
c1 color: interpolate from this color
c2 color: interpolate to this color
amt float: between 0.0 and 1.0
Returns:
float
"
([c1 c2 amt]
(PApplet/lerpColor c1 c2 (float amt) 1)))
Vars in
incanter.processing/lerp-color:
defn
float
Used in 0 other vars
Comments top
No comments for lerp-color. Log in to add a comment.