Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ColorRangeOpts

Hierarchy

  • ColorRangeOpts

Index

Properties

Optional base

base?: ReadonlyVec | CSSColorName

Base color. Either a TypedColor instance, CSSColorName or raw LCH tuple. Its hue will be used as bias to create a randomized variation (based on ColorRangeOpts.variance).

eps

eps: number

Tolerance for grayscale check (used for both saturation and brightness).

defaultvalue

0.001

num

num: number

Nunber of result colors.

defaultvalue

rnd

rnd: IRandom

PRNG instance to use for randomized values

defaultvalue

SYSTEM

variance

variance: number

Max. normalized & randomized hue shift for result colors. Only used if a base color is given.

defaultvalue

0.025 (i.e. +/- 9 degrees)

Generated using TypeDoc