RandomShapeColor

p5ex~ RandomShapeColor

(To be filled)

Constructor

new RandomShapeColor()

Source:

Methods

clear()

Clears all color candidates.
Source:

get()

Returns one of color candidates randomly.
Source:

pushCandidate(shapeColor, candidateCount)

(To be filled)
Source:
Parameters:
Name Type Default Description
shapeColor p5.Color Any p5.Color instance.
candidateCount number 1 Number of color candidates to push.

pushCandidateFromFunction(createShapeColor, candidateCount)

(To be filled)
Source:
Parameters:
Name Type Description
createShapeColor Any function which returns a p5ex.ShapeColor instance.
candidateCount number Number of color candidates to push.