Skip to content
JavaScript Vue CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
config
dist
src
static
.babelrc
.editorconfig
.gitignore
.postcssrc.js
README.md
index.html
package-lock.json
package.json

README.md

ColorfulImg

Colorfulimg是一个能够通过canvas获取图片主题色的js工具库。

起步

安装colorfulimg

npm i colorfulimg 

在你的项目中引入colorfulimg

let colorfulimg = require('colorfulimg') 
let myImg = document.getElementById('myImg')
let rgb = colorfulImg(myImg);

取色网站ColorfulImg

ColorfulImg

You can’t perform that action at this time.