This commit is contained in:
Harvey Zack committed 2019-04-18 18:08:50 +08:00
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,