【文件属性】:
文件名称:rescript-tinycolor:用于TinyColor的ReScript绑定
文件大小:70KB
文件格式:ZIP
更新时间:2021-03-27 04:11:02
javascript-utility bucklescript-bindings Reason
微小的颜色
用于ReScript绑定:快速,小巧的色彩处理和转换。 另请参阅
入门
yarn add rescript-tinycolor
然后将rescript-tinycolor添加rescript-tinycolor的依赖bsconfig.json :
"bs-dependencies": [
+ "rescript-tinycolor"
]
例子
open RescriptTinycolor ;
let redString = TinyColor . makeFromString( "red" ) ;
/* New instance made by name 'red' */
let blueRgb = TinyColor . makeFromRgb({r : 0 , g : 0 , b : 255 }) ;
/* New instance made with RGB val
【文件预览】:
rescript-tinycolor-master
----yarn.lock(151KB)
----src()
--------TinyColor.re(11KB)
----bsconfig.json(467B)
----.travis.yml(52B)
----LICENSE(1KB)
----__tests__()
--------Tinycolor_tests.re(20KB)
----README.md(4KB)
----.gitignore(306B)
----package.json(745B)