Star

Created With

linkrasterize()

Rasterize quadrille according to upper-left corner vertex pattern0, bottom-left corner vertex pattern1, upper-right corner vertex pattern2, and bottom-right corner vertex pattern3, using (fragment) shader. Call rasterizeTriangle() on the two non-overlapping triangles entirely covering the quadrille.

linkSyntax

rasterize(shader, pattern0, [pattern1], [pattern2], [pattern3])

linkParameters

shaderFunction: taking { pattern: interpolated_data_array, row: i, col: j } params and returning a p5.Color
pattern0Array: corner0 attributes to be interpolated
pattern1Array: corner1 attributes to be interpolated default is pattern0
pattern2Array: corner2 attributes to be interpolated default is pattern0
pattern3Array: corner3 attributes to be interpolated default is pattern0
rasterize()SyntaxParameters

Home

p5.js functionschevron_right

Properties

I/Ochevron_right
Boolean operatorschevron_right
Geometry transformationschevron_right
Visual computingchevron_right
Other representationschevron_right

Demo