Star

Created With

linkrand()

Fills the quadrille with pattern up to order, randomly adding or removing cells as necessary.

linkSyntax

rand(order, pattern)

linkParameters

orderNumber: target number of non-empty cells
patternp5.Image | p5.Graphics | p5.Color | array | object | string | number
rand()SyntaxParameters

Home

p5.js functionschevron_right

Properties

I/Ochevron_right
Boolean operatorschevron_right
Geometry transformationschevron_right
Visual computingchevron_right
Other representationschevron_right

Demo