Added styling to sim script instead of in the page

This commit is contained in:
2025-11-01 11:19:59 -05:00
parent 8ca01e06de
commit e03be84e94

View File

@ -188,6 +188,12 @@ function setup(){
background(255); background(255);
describe("A space physics simulator"); describe("A space physics simulator");
canvas.style("z-index", -1);
canvas.style("position", "fixed");
canvas.style("top", 0);
canvas.style("left", 0);
canvas.style("right", 0);
canvas.style("bottom", 0);
//Load Entities //Load Entities
for(var i = 0; i <= Settings.entityCount; i+=1){ for(var i = 0; i <= Settings.entityCount; i+=1){