【文件属性】:
文件名称:swbg:背景颜色生成器
文件大小:4KB
文件格式:ZIP
更新时间:2021-07-02 11:54:44
JavaScript
世邦魏理仕
材质颜色背景颜色生成器,每个刷新页面上的随机背景颜色。
安装
npm install swbg
用法
var swbg = require ( 'swbg' ) ;
// print html code with material color background
console . log ( swbg ( ) ) ;
// Random all color
console . log ( swbg . color ( ) ) ;
// print RBGA color
console . log ( swbg . getColor ( ) ) ;
// print material color
console . log ( swbg . getMaterial ( ) ) ;
例子
纯 Node.js
var http = require ( 'http' ) ;
【文件预览】:
swbg-master
----.gitignore(22B)
----package.json(375B)
----test.js(313B)
----README.md(2KB)
----swbg.js(3KB)