mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Fix
This commit is contained in:
@@ -58,7 +58,8 @@ module.exports = class SkyrimSkillCommand extends Command {
|
|||||||
const height = Math.round(base.width / ratio);
|
const height = Math.round(base.width / ratio);
|
||||||
const canvas = createCanvas(plate.width, plate.height + height);
|
const canvas = createCanvas(plate.width, plate.height + height);
|
||||||
const ctx = canvas.getContext('2d');
|
const ctx = canvas.getContext('2d');
|
||||||
ctx.drawImage(base, 0, 0);
|
ctx.drawImage(base, 0, 0, plate.width, height);
|
||||||
|
ctx.drawImage(plate, 0, height + 1);
|
||||||
ctx.font = 'normal bold 77px Futura';
|
ctx.font = 'normal bold 77px Futura';
|
||||||
ctx.textAlign = 'center';
|
ctx.textAlign = 'center';
|
||||||
ctx.textBaseline = 'top';
|
ctx.textBaseline = 'top';
|
||||||
|
|||||||
Reference in New Issue
Block a user