mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
More fixes
This commit is contained in:
@@ -54,9 +54,9 @@ module.exports = class DemotivationalPosterCommand extends Command {
|
|||||||
const width = Math.min(Math.round(402 / ratio), 602);
|
const width = Math.min(Math.round(402 / ratio), 602);
|
||||||
const x = (canvas.width / 2) - (width / 2);
|
const x = (canvas.width / 2) - (width / 2);
|
||||||
ctx.fillStyle = 'white';
|
ctx.fillStyle = 'white';
|
||||||
ctx.fillRect(x - 4, 40, width + 8, 406);
|
ctx.fillRect(x - 4, 40, width + 8, 410);
|
||||||
ctx.fillStyle = 'black';
|
ctx.fillStyle = 'black';
|
||||||
ctx.fillRect(x - 2, 42, width + 4, 404);
|
ctx.fillRect(x - 2, 42, width + 4, 406);
|
||||||
ctx.fillStyle = 'white';
|
ctx.fillStyle = 'white';
|
||||||
ctx.fillRect(x, 44, width, 402);
|
ctx.fillRect(x, 44, width, 402);
|
||||||
ctx.drawImage(data, x, 44, width, 402);
|
ctx.drawImage(data, x, 44, width, 402);
|
||||||
|
|||||||
Reference in New Issue
Block a user