@fantasy-color/hsva-to-rgba
v2.1.0
Published
Transform HSV objects to RGB objects
Downloads
35
Keywords
Readme
@fantasy-color/hsva-to-rgba
Transform a HSVA
color object to a RGBA
color object.
type hsvaToRgba = (color: HSVA) => RGBA
Example usage:
import hsvaToRgba from '@fantasy-color/hsva-to-rgba'
hsvaToRgba({
hue: 180,
saturation: 100,
value: 100,
alpha: 0.6
})
// { red: 0, green: 255, blue: 255, alpha: 0.6 }