Skip to content

Commit

Permalink
Change of background colour, tweaked canvas clear/background
Browse files Browse the repository at this point in the history
  • Loading branch information
Slinger committed Apr 7, 2024
1 parent 68d1fe2 commit 4af18e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
7 changes: 7 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,11 @@ html, body {
height:100%;
margin:0;
text-align: center;
//background: #361564;
//background: #6a2798;
background: #7030a0;
}

a {
color: #0000c0;;
}

0 comments on commit 4af18e9

Please sign in to comment.