Skip to content
party.js logoparty.js logo

ReferenceSamplersInterface

RandomHueOptions

The lightness, chroma and opacity of random-hue colors.

Options for randomHue().

alphaoptionalnumberdefault1

Opacity, from 0 (transparent) to 1 (opaque).

cnumber

Chroma: how intense the colors are, from 0 (gray) upwards. Around 0.1-0.2 gives vivid colors, while very high values cannot be shown on a screen and will be clipped.

lnumber

Lightness, from 0 (black) to 1 (white).