From 12d8512a41315f93bf7dcc5c9091929e1727a16b Mon Sep 17 00:00:00 2001 From: elioat Date: Sat, 11 Jan 2025 09:42:29 -0500 Subject: * --- html/cards/script.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'html') diff --git a/html/cards/script.js b/html/cards/script.js index ed68e53..0f2c99a 100644 --- a/html/cards/script.js +++ b/html/cards/script.js @@ -8,7 +8,7 @@ const CARD_BACK_COLOR = '#FFCC00'; const PATTERN_SIZE = 10; const INITIAL_CARD_X = 20; const INITIAL_CARD_Y = 20; -const FONT_SIZE = '16px "pokemon-font", monospace'; +const FONT_SIZE = '34px "pokemon-font", monospace'; const CARD_BORDER_COLOR = '#000000'; const CARD_FACE_COLOR = '#FFFFFF'; @@ -71,9 +71,8 @@ const drawCardFront = card => { ctx.strokeRect(card.x, card.y, CARD_WIDTH, CARD_HEIGHT); // Draw value and suit with a retro font style - drawCardValue(card.card.value, card.x + 10, card.y + 25, 'left'); - drawCardSuit(card.card.suit, card.x + CARD_WIDTH / 2, card.y + CARD_HEIGHT / 2 + 10); - drawCardValue(card.card.value, card.x + CARD_WIDTH - 10, card.y + CARD_HEIGHT - 10, 'right'); + drawCardValue(card.card.value, card.x + 12, card.y + 42, 'left'); + drawCardSuit(card.card.suit, card.x + CARD_WIDTH / 2, card.y + CARD_HEIGHT / 2 + 20); }; const drawCardValue = (value, x, y, alignment) => { -- cgit 1.4.1-2-gfad0