color-format-convert
v0.0.48
Published
一个执行颜色格式转换[D[D[D[之间转换的工具
Downloads
1
Readme
ColorConverter
A color conversion tool, currently only supports HEX and RGB conversion
颜色格式转换工具, 目前只支持HEX和RGB之间转换
Example
RGB and HEX transformation
rgb和16进制位颜色转换
colorConvert('#ffffff') // rgb(255,255,255)
colorConvert('rgb(255, 255, 255)') // #ffffff
. HEX and RGB 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