1.2.0 • Published 2 years ago

phi-color v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

1.2.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago