Skip to content

Latest commit

 

History

17 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation


Omega / Color

Various color conversions.


Badge Stars


Hex RGB(A)

const hex = '#0000FF' // Blue

const rgb = hexToRGB(hex)

console.debug(rgb) // [ 0 , 0 , 255 ]

HSL(A)

const hsl = [ 0 , 100 , 50 ] // Red

const rgb = hslToRGB(hsl)

console.debug(rgb) // [ 255 , 0 , 0 ]

CMYK(A)

const cmyka = [ 100 , 0 , 100 , 0 ] // Green

const rgb = cmykToRGB(cmyka)

console.debug(rgb) // [ 120 , 100 , 50 ]

关于

Small color conversion module.

Topics

Resources

Contributing

Stars

0 stars

关注者

1 watching

复刻s

Used by

贡献者

Languages