HSV
Hue, Saturation, Value
Hue value is between 0 and 360. Saturation, value, and alpha are between 0 and 100 (as in, percent).
New Color
Color.from('hsv',[h, s, v, a?])
Conversion to
.to('hsv',{
round: boolean // optional, default = true
})
Get methods
.getH(): number
.getS(): number
.getV(): number
.getA(): number // if alpha is not set, defaults to 100
JavaScript
const Color = require('chromaticity-color-utilities')
const color1 = Color.from('hsv', [300, 100, 100])
const color3 = color2.to('hsv')
TypeScript
import Color from 'chromaticity-color-utilities'
const c: Color.hsv = Color.from('hsv', [300, 100, 100])