mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-21 14:04:38 +02:00
Fix
This commit is contained in:
@@ -113,9 +113,8 @@ module.exports = class YuGiOhGenCommand 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);
|
||||||
const { x, y } = centerImagePart(data, 590, 590, 109, 241);
|
|
||||||
const height = 590 / data.width;
|
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(base, 0, 0);
|
||||||
ctx.drawImage(atr, 669, 61, 77, 77);
|
ctx.drawImage(atr, 669, 61, 77, 77);
|
||||||
for (let i = 0; i < level; i++) {
|
for (let i = 0; i < level; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user