mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 22:14:34 +02:00
Beep
This commit is contained in:
@@ -57,7 +57,7 @@ module.exports = class DemotivationalPosterCommand extends Command {
|
|||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
ctx.fillStyle = 'white';
|
ctx.fillStyle = 'white';
|
||||||
ctx.fillRect(0, 0, base.width, base.height);
|
ctx.fillRect(0, 0, base.width, base.height);
|
||||||
ctx.drawImage(data, 69, 44, 612, data.height);
|
ctx.drawImage(data, 69, 44, 612, data.height === data.width ? 612 : data.height > 412 ? data.height : 412);
|
||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0);
|
||||||
ctx.textAlign = 'center';
|
ctx.textAlign = 'center';
|
||||||
ctx.font = '60px Noto';
|
ctx.font = '60px Noto';
|
||||||
|
|||||||
Reference in New Issue
Block a user