From 4af18e904d9a94fe930b85f90b562f6afa077b27 Mon Sep 17 00:00:00 2001 From: Mats Wahlberg Date: Sun, 7 Apr 2024 18:54:23 +0200 Subject: [PATCH] Change of background colour, tweaked canvas clear/background --- script.js | 4 +++- style.css | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/script.js b/script.js index ab5913e..d230fae 100644 --- a/script.js +++ b/script.js @@ -276,7 +276,9 @@ class Field { //canvas.width=window.innerWidth; //this.block_width=canvas.width/field_width; //this.block_height=canvas.height/field_height; - context.clearRect(0,0,canvas.width,canvas.height) + //context.clearRect(0,0,canvas.width,canvas.height) + context.fillStyle="#ffffff" + context.fillRect(0,0,canvas.width,canvas.height) context.drawImage(background, 0, canvas.height-canvas.width, canvas.width, canvas.width); } draw() { diff --git a/style.css b/style.css index c576603..930aee6 100644 --- a/style.css +++ b/style.css @@ -50,4 +50,11 @@ html, body { height:100%; margin:0; text-align: center; + //background: #361564; + //background: #6a2798; + background: #7030a0; +} + +a { + color: #0000c0;; }