Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 756 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 756 Bytes

phi-color

Generate random colors within a given sphere in the HCL color space using the Golden Ratio

usage

phiColor(origin, magitude, n)

Parameters

  • origin: The color string that should be used as the perceptual center for the color palette
  • magnitude: The magnitude as a proportion of each dimension of HCL that colors should be created within. A magnitude of 0 will return n colors identical to the origin, while a magnitudes above 1 will create entirely disparate colors
  • n: The number of colors to generate

Returns

  • Array of color strings of length n

examples