Star

Created With

linksort()

Sort quadrille cells according to their coloring.

linkSyntax

sort([{[mode], [target], [ascending], [textColor], [textZoom], [outline], [background], [numberColor], [min], [max]}])

linkParameters

modeString: Either LUMA, AVG, or DISTANCE default is LUMA.
targetp5.Color representation: DISTANCE mode target color
ascendingBoolean: sort cells ascending default is true.
textColorp5.Color representation: text sampling color default is black
textZoomNumber:: text zoom level default is 0.89
backgroundp5.Color representation: background sampling default is white
cellLengthNumber: cell sampling length default is quadrille width
numberColorp5.Color representation: number color default is orange
minNumber: remap cell alpha when its entry is a number from [min, max] to [0, 255] number default is 0
maxNumber: remap cell alpha when its entry is a number from [min, max] to [0, 255] number default is 0
sort()SyntaxParameters

Home

p5.js functionschevron_right

Properties

I/Ochevron_right
Boolean operatorschevron_right
Geometry transformationschevron_right
Visual computingchevron_right
Other representationschevron_right

Demo