colorize(args)
Colorize quadrille according to upper-left corner color0, bottom-left corner color1, upper-right corner color2, and bottom-right corner color3 colors. Call colorizeTriangle() on the two non-overlapping triangles entirely covering the quadrille.
Example
Syntax
colorize(color0, [color1], [color2], [color3])
Parameters
| Param | description |
|---|---|
color0 |
p5.Color : corner0 color to be interpolated |
color1 |
p5.Color : corner1 color to be interpolated default is color0 |
color2 |
p5.Color : corner2 color to be interpolated default is color0 |
color3 |
p5.Color : corner3 color to be interpolated default is color0 |
What this page's examples use
- p5.quadrille
drawQuadrillecreateQuadrillecolorize- p5.js
createCanvas
Names the analysis can prove are called, and the line each one is documented on. Local variables and members of an unknown receiver are left out.