Correct declaration of destCanvas in remix

This commit is contained in:
Ninjdai1 2023-09-14 13:01:54 +02:00
parent 24cd367e4d
commit 8e99e5d8a1

View File

@ -236,9 +236,8 @@ function applyOilPaintEffect(ctx, radius, intensity) {
height = ctx.canvas.height,
imgData = ctx.getImageData(0, 0, width, height),
pixData = imgData.data,
pixelIntensityCount = [];
destCanvas = ctx.canvas;
pixelIntensityCount = [],
destCanvas = ctx.canvas;
destCanvas.width = width;
destCanvas.height = height;