- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/justinzzc/zColor
- 软件文档: https://github.com/justinzzc/zColor/blob/master/README.md
软件介绍
zColor
只需添加一行js脚本就转换多种web色值
示例代码
zColor("red").hex(); //#ff0000zColor("red").rgb(); //rgb(255,0,0)zColor("red").hsl(); //hsl(0,100%,50%)zColor("rgb(255,0,0)").hex(); //#ff0000zColor("#ff0000").rgb(); //rgb(255,0,0)zColor("hsl(0,100%,50%)").hex(); //#ff0000
