Cover
Reference
Tutorials
Bugs
stroke(255) background(51) from = color(204, 102, 0) to = color(0, 102, 153) interA = lerpColor(from, to, 0.33) interB = lerpColor(from, to, 0.66) fill(from) rect(10, 20, 20, 60) fill(interA) rect(30, 20, 20, 60) fill(interB) rect(50, 20, 20, 60) fill(to) rect(70, 20, 20, 60)
lerpColor(c1 ,c2 ,amt )
| c1 | int: interpolate from this color |
|---|---|
| c2 | int: interpolate to this color |
| amt | float: between 0.0 and 1.0 |