mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Less pixelized
This commit is contained in:
@@ -65,8 +65,8 @@ module.exports = class WildPokemonCommand extends Command {
|
|||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.imageSmoothingEnabled = false;
|
ctx.imageSmoothingEnabled = false;
|
||||||
const { x, y, width, height } = centerImagePart(data, 100, 100, 227, 11);
|
const { x, y, width, height } = centerImagePart(data, 100, 100, 227, 11);
|
||||||
ctx.drawImage(data, x, y, width * 0.15, height * 0.15);
|
ctx.drawImage(data, x, y, width * 0.25, height * 0.25);
|
||||||
ctx.drawImage(canvas, x, y, width * 0.15, height * 0.15, x, y, width, height);
|
ctx.drawImage(canvas, x, y, width * 0.25, height * 0.25, x, y, width, height);
|
||||||
ctx.imageSmoothingEnabled = true;
|
ctx.imageSmoothingEnabled = true;
|
||||||
greyscale(ctx, x, y, width, height);
|
greyscale(ctx, x, y, width, height);
|
||||||
ctx.textBaseline = 'top';
|
ctx.textBaseline = 'top';
|
||||||
|
|||||||
Reference in New Issue
Block a user