Less pixelized

This commit is contained in:
Dragon Fire
2020-07-01 11:18:28 -04:00
parent be8b563335
commit bae1ffc746
+2 -2
View File
@@ -65,8 +65,8 @@ module.exports = class WildPokemonCommand extends Command {
ctx.drawImage(base, 0, 0);
ctx.imageSmoothingEnabled = false;
const { x, y, width, height } = centerImagePart(data, 100, 100, 227, 11);
ctx.drawImage(data, x, y, width * 0.15, height * 0.15);
ctx.drawImage(canvas, x, y, width * 0.15, height * 0.15, x, y, width, height);
ctx.drawImage(data, x, y, width * 0.25, height * 0.25);
ctx.drawImage(canvas, x, y, width * 0.25, height * 0.25, x, y, width, height);
ctx.imageSmoothingEnabled = true;
greyscale(ctx, x, y, width, height);
ctx.textBaseline = 'top';