@f/hwb-to-rgb
v1.0.0
Published
Convert HWB colors to RGB
Downloads
126
Readme
hwb-to-rgb
Convert HWB colors to RGB
Installation
$ npm install @f/hwb-to-rgb
Usage
var hwbToRgb = require('@f/hwb-to-rgb')
hwbToRgb(87, 0.27, 0.5) // -> [101, 128, 69]
API
hwbToRgb(hue, white, black)
hue
- Hue, expressed as an integer between 0 and 360.white
- Whiteness, expressed as a floating point normalized between 0 and 1.black
- Blackness, expressed as a floating point normalized between 0 and 1.
Returns: An array containing [red, green, blue] values that correspond to the HWB color you specified.
License
MIT