ShapeColor

p5ex~ ShapeColor

Composition of two p5.Color instances. One for stroke(), one for fill().

Constructor

new ShapeColor(p, strokeColor, fillColor, alphaEnabledopt, alphaResolutionopt)

Source:
Parameters:
Name Type Attributes Description
p p5ex instance.
strokeColor p5.Color | null | undefined Color for stroke(). Null means noStroke().
fillColor p5.Color | null | undefined Color for fill(). Null means noFill().
alphaEnabled boolean <optional>
alphaResolution number <optional>

Members

(static) UNDEFINED

Undefined object of p5ex.ShapeColor.
Source:

Methods

applyColor(alphaValue)

Applies colors to the current p5 renderer.
Source:
Parameters:
Name Type Description
alphaValue number Alpha channel value (0 - 255)