Skip to content

Latest commit

 

History

History

hsv-to-rgb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@fantasy-color/hsv-to-rgb

Transform a HSV color object to a RGB color object.

type hsvToRgb = (color: HSV) => RGB

Example usage:

import hsvToRgb from '@fantasy-color/hsv-to-rgb'

hsvToRgb({
  hue: 180,
  saturation: 100,
  value: 100
})
// { red: 0, green: 255, blue: 255 }