@fantasy-color/hsva-to-hsv
v2.1.0
Published
Transform HSVA objects to HSV objects
Downloads
10
Keywords
Readme
@fantasy-color/hsva-to-hsv
Transform a HSVA
color object to a HSV
color object.
type hsvaToHsv = (color: HSVA) => HSV
Example usage:
import hsvaToHsv from '@fantasy-color/hsva-to-hsv'
hsvaToHsv({
hue: 60,
saturation: 32,
value: 23,
alpha: 1
})
// { hue: 60, saturation: 32, value: 23 }