This commit is contained in:
parent
1e92d23c06
commit
ab38ce8f70
3
.js
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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user