Star

Created With

linkcolorize()

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.

linkSyntax

colorize(color0, [color1], [color2], [color3])

linkParameters

color0p5.Color : corner0 color to be interpolated
color1p5.Color : corner1 color to be interpolated default is color0
color2p5.Color : corner2 color to be interpolated default is color0
color3p5.Color : corner2 color to be interpolated default is color0
colorize()SyntaxParameters

Home

p5.js functionschevron_right

Properties

I/Ochevron_right
Boolean operatorschevron_right
Geometry transformationschevron_right
Visual computingchevron_right
Other representationschevron_right

Demo