color-utils:与颜色相关的实用程序的集合

时间:2021-03-09 20:45:28
【文件属性】:
文件名称:color-utils:与颜色相关的实用程序的集合
文件大小:667KB
文件格式:ZIP
更新时间:2021-03-09 20:45:28
JavaScript 色彩实用程序 与颜色相关的实用程序的集合。 tl; dr 通过执行npm install @wojtekmaj/color-utils或yarn add @wojtekmaj/color-utils 。 通过添加import * as colorUtils from '@wojtekmaj/color-utils' 。 用它做东西! toRgb ( '#ff0000' ) ; // "rgb(255, 0, 0)" 用户指南 alpha() 以给定的颜色添加/更改Alpha通道。 样品用法 import { alpha } from '@wojtekmaj/color-utils' ; alpha ( '#f00' , 0.5 ) ; // "rgba(255, 0, 0, 0.5)" alpha ( '#00ff00' , 0.1 ) ; // "rgba(0, 255, 0,
【文件预览】:
color-utils-master
----.eslintrc.json(29B)
----.gitattributes(378B)
----.github()
--------FUNDING.yml(18B)
--------workflows()
----yarn.lock(254KB)
----src()
--------index.spec.js(6KB)
--------index.js(5KB)
----.babelrc(150B)
----.yarnrc.yml(66B)
----LICENSE(1KB)
----README.md(3KB)
----.gitignore(119B)
----.yarn()
--------releases()
----.eslintignore(10B)
----package.json(1KB)

网友评论