Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 541 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 541 Bytes

ColorfulImg

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

起步

安装colorfulimg

npm i colorfulimg 

在你的项目中引入colorfulimg

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

取色网站ColorfulImg

ColorfulImg