diff options
author | elioat <elioat@tilde.institute> | 2025-01-10 20:44:16 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2025-01-10 20:44:16 -0500 |
commit | fc1c72a236ab3530d2ae151873accb55160ced44 (patch) | |
tree | 487746700cc07d487d98aa56f9f20848b7e8c6dc | |
parent | 58c867174ad4127fc817a73a7d747911affc1d6c (diff) | |
download | tour-fc1c72a236ab3530d2ae151873accb55160ced44.tar.gz |
*
-rw-r--r-- | html/cards/script.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/html/cards/script.js b/html/cards/script.js index b851a6d..3c6869c 100644 --- a/html/cards/script.js +++ b/html/cards/script.js @@ -8,7 +8,7 @@ const CARD_BACK_COLOR = '#0066cc'; const PATTERN_SIZE = 10; const INITIAL_CARD_X = 20; const INITIAL_CARD_Y = 20; -const FONT_SIZE = '30px Arial'; +const FONT_SIZE = '20px Arial'; // Canvas setup const canvas = document.getElementById('cards'); @@ -70,9 +70,9 @@ const drawCardFront = card => { ctx.strokeRect(card.x, card.y, CARD_WIDTH, CARD_HEIGHT); // Draw value and suit - drawCardValue(card.card.value, card.x + 10, card.y + 40, 'left'); + 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 - 20, card.y + CARD_HEIGHT - 10, 'right'); + drawCardValue(card.card.value, card.x + CARD_WIDTH - 10, card.y + CARD_HEIGHT - 10, 'right'); }; const drawCardValue = (value, x, y, alignment) => { |