2.1.0 • Published 5 years ago
@fantasy-color/hsv-to-rgb v2.1.0
@fantasy-color/hsv-to-rgb
Transform a HSV color object to a RGB color object.
type hsvToRgb = (color: HSV) => RGBExample usage:
import hsvToRgb from '@fantasy-color/hsv-to-rgb'
hsvToRgb({
hue: 180,
saturation: 100,
value: 100
})
// { red: 0, green: 255, blue: 255 }