Added home styling
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user