1.2.3-SNAPSHOT permalink Arrow_down_16x16

lerp-color

incanter.processing

  • (lerp-color c1 c2 amt)

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

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/processing.clj:753 top

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