From 57a812e47eea2fd535fedb95597f8d82bb3fd5f8 Mon Sep 17 00:00:00 2001 From: BurntWaffleCake Date: Mon, 11 Dec 2023 11:11:51 -0600 Subject: [PATCH] changed massBall style --- projects/Physics/massBall/index.html | 106 +++++++++++++++++++-------- projects/javascriptrender | 1 + 2 files changed, 78 insertions(+), 29 deletions(-) create mode 160000 projects/javascriptrender diff --git a/projects/Physics/massBall/index.html b/projects/Physics/massBall/index.html index de690b1..5fd2a1a 100644 --- a/projects/Physics/massBall/index.html +++ b/projects/Physics/massBall/index.html @@ -20,16 +20,15 @@ } body { display: flex; - background-color: white; + background-color: black; justify-content: center; align-content: center; } #simulation-fps { - border: 1px solid red; margin: 0; padding: 0; - color: black; + color: white; } a { @@ -39,24 +38,10 @@ font-size: x-large; } - #instructions { - border: 3px solid red; - padding: 2rem; - margin: 0; - text-align: left; - /* flex: auto; */ - - width: 10rem; - flex-shrink: 1; - /* flex-grow: 1; */ - /* justify-self: end; */ - } - #container { - padding: 0; - margin: 0; display: flex; justify-content: center; + align-content: center; flex-direction: row; width: 100%; height: 100%; @@ -65,23 +50,44 @@ form { width: 10rem; padding: 1rem; - /* flex: auto; */ - /* flex-shrink: 1; */ } #source { - margin-left: auto; - margin-right: auto; + width: 50%; + /* margin-left: auto; */ + /* margin-right: auto; */ align-self: center; background-color: white; - aspect-ratio: 1/1; - height: 100%; + border: 3px solid white; + flex-shrink: 1; + } + + options { + position: absolute; + top: 1rem; + left: 1rem; + } + + #instructions { + display: none; + color: white; + + padding: 1rem; + margin: 0; + width: 10rem; + } + + #settings { + display: none; + color: white; } -
-
+ + + +

FPS:



@@ -98,9 +104,6 @@



- - -
    Instructions:
  • Click to add more balls
  • @@ -108,8 +111,53 @@
  • Restitiution describes how bouncy the balls are
  • Simulation Substeps changes the number of calculation
    cycles per frame, increase to add more stability to the simulation in exchange of performance
+
+ +
+
+ + diff --git a/projects/javascriptrender b/projects/javascriptrender new file mode 160000 index 0000000..ac4a397 --- /dev/null +++ b/projects/javascriptrender @@ -0,0 +1 @@ +Subproject commit ac4a3971371353ec5e4698dd51019f381cac8d0b