Added home styling

This commit is contained in:
2025-10-09 16:06:01 -05:00
parent 0fadf14493
commit 713d2c997b
2 changed files with 142 additions and 23 deletions

View File

@ -1,12 +1,15 @@
var bg = document.getElementById("backgroundSim")
var ctx = bg.getContext("2d");
ctx.canvas.width = window.innerWidth;
ctx.canvas.height = window.innerHeight;
ctx.canvas.width = window.screen.availWidth;
ctx.canvas.height = window.screen.availHeight;
rock = new Image();
rock.src = "Rock1.png";
ctx.fill()
var resolutionTag = document.getElementById("resolutionTag");
resolutionTag.textContent = "document: " + window.screen.availWidth + "x" + window.screen.availHeight + ", inner window: " + window.innerWidth + "x" + window.innerHeight;
function drawCircle(x, y, r){
ctx.beginPath();
ctx.arc(x, y, r, 0, 2*Math.PI)