Skip to content

donglinkai/colorConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ColorConverter npm version

A color conversion tool, currently only supports HEX and RGB conversion

颜色格式转换工具, 目前只支持HEX和RGB之间转换

Example

demo: https://donglinkai.github.io/colorConverter/

  • RGB and HEX transformation

  • rgb和16进制位颜色转换

colorConvert('#ffffff') // rgb(255,255,255)

colorConvert('rgb(255, 255, 255)') // #ffffff

. HEX and RGBA transformation

. rgba和16进制位转换

colorConvert('rgba(255, 255, 255, 1)') // #ffffffff

colorConvert('#ffffffff') // rgba(255,255,255, 1)

Install

  • npm install color-format-convert

  • yarn add color-format-convert

About

颜色格式转换工具

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published