Skip to content

mike8625/colorConvert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

colorConvert

convert hex color to color name, color name to hex, rgb to hex, hex to rgb.

16进制的颜色值,颜色名称,RGB颜色互转.

eg:

colorConvert.RGB2Hex("rgb ( 255 , 0 , 0)"); //output "#FF0000"

colorConvert.hex2RGB("#00FF00"); //output "[0,255,0]"

colorConvert.RGB2Name("rgb ( 255 , 0 , 0)"); //output "red"

colorConvert.name2Hex("red"); //output "#FF0000"

About

convert hex color to name, name to hex, rgb to hex, hex to rgb.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published