This commit is contained in:
Dragon Fire
2020-06-12 10:49:17 -04:00
parent 7485792f1a
commit 10b7265c4a
+1 -2
View File
@@ -113,9 +113,8 @@ module.exports = class YuGiOhGenCommand extends Command {
const ctx = canvas.getContext('2d');
ctx.fillStyle = 'white';
ctx.fillRect(0, 0, base.width, base.height);
const { x, y } = centerImagePart(data, 590, 590, 109, 241);
const height = 590 / data.width;
ctx.drawImage(data, x, y, 590, height);
ctx.drawImage(data, 109, 241, 590, height);
ctx.drawImage(base, 0, 0);
ctx.drawImage(atr, 669, 61, 77, 77);
for (let i = 0; i < level; i++) {