1.0.0 • Published 8 years ago

@f/hwb-to-rgb v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

hwb-to-rgb

Build status Git tag NPM version Code style

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