Update devtests.js

This commit is contained in:
slweeb 2024-12-27 19:46:15 -05:00
parent 27bda13e33
commit 74725437bb
1 changed files with 19 additions and 1 deletions

View File

@ -190,4 +190,22 @@ elements.clone_fluid = {
// "SM%5 AND MX|SM%5 AND MX|SM%5 AND MX", // "SM%5 AND MX|SM%5 AND MX|SM%5 AND MX",
// ], // ],
// category: "special" // category: "special"
// } // }
addCanvasLayer("devtests");
canvasLayersPre.unshift(canvasLayers["devtests"]);
devtestsCtx = canvasLayers["devtests"].getContext("2d");
delete canvasLayers.devtests;
viewInfo[9] = { // Blur
name: "blur",
pixel: viewInfo[1].pixel,
post: function(ctx) {
devtestsCtx.canvas.width = ctx.canvas.width;
devtestsCtx.canvas.height = ctx.canvas.height;
devtestsCtx.filter = "blur(80px)";
// Draw the blurred content on the canvas
devtestsCtx.drawImage(canvasLayers["pixels"], 0, 0);
devtestsCtx.filter = "none";
},
};