Added styling to sim script instead of in the page
This commit is contained in:
@ -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){
|
||||||
|
|||||||
Reference in New Issue
Block a user