Actualiser custom.js
This commit is contained in:
parent
c4f2236b12
commit
82b440413f
1 changed files with 1 additions and 6 deletions
|
@ -61,12 +61,7 @@ const svgObsidianFix = () => {
|
|||
canvas.height = image.height;
|
||||
const ctx = canvas.getContext("2d");
|
||||
ctx.drawImage(image, 0, 0);
|
||||
const imageData = ctx.getImageData(
|
||||
0,
|
||||
0,
|
||||
Math.floor(canvas.width),
|
||||
Math.floor(canvas.height)
|
||||
);
|
||||
const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
|
||||
const pixelData = imageData.data;
|
||||
|
||||
const colors = [];
|
||||
|
|
Loading…
Reference in a new issue