mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix
This commit is contained in:
@@ -89,6 +89,7 @@ module.exports = class WhosThatPokemonCommand extends Command {
|
|||||||
if (hide) {
|
if (hide) {
|
||||||
const silhouetteCanvas = createCanvas(pkmn.width, pkmn.height);
|
const silhouetteCanvas = createCanvas(pkmn.width, pkmn.height);
|
||||||
const silhouetteCtx = silhouetteCanvas.getContext('2d');
|
const silhouetteCtx = silhouetteCanvas.getContext('2d');
|
||||||
|
silhouetteCtx.drawImage(pkmn, 0, 0);
|
||||||
silhouette(silhouetteCtx, 0, 0, pkmn.width, pkmn.height);
|
silhouette(silhouetteCtx, 0, 0, pkmn.width, pkmn.height);
|
||||||
ctx.drawImage(silhouetteCanvas, 30, 39, 200, 200);
|
ctx.drawImage(silhouetteCanvas, 30, 39, 200, 200);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user