Background-Color-Thief:使用Javascript检测图像的背景颜色

时间:2021-06-08 23:22:09
【文件属性】:
文件名称:Background-Color-Thief:使用Javascript检测图像的背景颜色
文件大小:20KB
文件格式:ZIP
更新时间:2021-06-08 23:22:09
JavaScript 背景色小偷 该脚本用于检测图像的背景颜色。 感谢 Color-Theif ( ) 的出色工作。 在这里,我使用了 Color-Theif 的一些代码。 ##如何使用 ####HTML 标记 < img xss=removed xss=removed> < div xss=removed> < / div > ####Javascript var backgroundColorThief = new BackgroundColorTheif ( ) ; var rgb = backgroundColorThief . getBackGroundColor ( document . getElementById ( "backgroundImage" ) ) ; document . getElementById (
【文件预览】:
Background-Color-Thief-master
----background-color-theif.js(22KB)
----.gitattributes(378B)
----README.md(1KB)
----demo.js(2KB)
----.gitignore(574B)
----demo.html(15KB)

网友评论