From 9e4c37326af39ec331e846ba29ae1152f2ef19fc Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Mar 2024 13:14:36 -0400 Subject: [PATCH] transparency --- commands/games-sp/whos-that-pokemon.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/games-sp/whos-that-pokemon.js b/commands/games-sp/whos-that-pokemon.js index 1e9a214c..1e855ff6 100644 --- a/commands/games-sp/whos-that-pokemon.js +++ b/commands/games-sp/whos-that-pokemon.js @@ -143,7 +143,9 @@ module.exports = class WhosThatPokemonCommand extends Command { ctx.textBaseline = 'bottom'; ctx.lineWidth = 8; ctx.strokeStyle = 'black'; + ctx.globalAlpha = 0.5; ctx.strokeText(pokemon.name, 357, 163, 240); + ctx.globalAlpha = 1; ctx.strokeStyle = '#3c5aa6'; ctx.strokeText(pokemon.name, 362, 158, 240); ctx.fillStyle = '#ffcb05';