mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 01:26:16 -08:00
update
This commit is contained in:
1 parent
a2c3e0d019
commit
2d6ac77747
3 files changed
+3
-7
No files matched your search
@@ -103,9 +103,7 @@
|
||||
var $img = document.createElement('img');
|
||||
|
||||
$img.onload = function () {
|
||||
var width = $img.naturalWidth;
|
||||
var height = $img.naturalHeight;
|
||||
var colors = getColors($img, width, height);
|
||||
var colors = getColors($img, clientWidth, clientHeight);
|
||||
colors.forEach(function (_ref, index) {
|
||||
var r = _ref.r,
|
||||
g = _ref.g,
|
||||
|
||||
Reference in new issue
Block a user