This commit is contained in:
Lamp 2019-02-10 13:23:56 -08:00 committed by GitHub
parent 1e92d23c06
commit ab38ce8f70

3
.js

@ -23,6 +23,7 @@ function rgbToHex(r, g, b) {
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var img = document.createElement("img");
img.crossOrigin = "Anonymous";
img.addEventListener('load', function(){
console.log(img);
var canvas = document.createElement('canvas');
@ -44,4 +45,4 @@ img.addEventListener('load', function(){
} ,++ii * 4);
}
});
img.src = "http://mpp.terrium.net/meow64.png";
img.src = "https://mpp.terrium.net/meow64.png";