aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJaro Camphuijsen <jjecamphuijsen@gmail.com>2015-11-03 12:59:53 +0100
committerJaro Camphuijsen <jjecamphuijsen@gmail.com>2015-11-03 13:05:58 +0100
commitf772f61b8b931574d0b6082f6ea2d908fce2a9db (patch)
treea2f23927967744ee9f0f411b7ee79ffef44e0c60
parent3817a7b9ca2db88284457d89880171c2fea03ddc (diff)
improve random bodies
-rw-r--r--style.css7
-rw-r--r--systems.js2
2 files changed, 5 insertions, 4 deletions
diff --git a/style.css b/style.css
index bdd9676..f7b598e 100644
--- a/style.css
+++ b/style.css
@@ -21,7 +21,7 @@ html, body {
opacity:1;
position: fixed;
top:20px;
- right: 100px;
+ right: 20px;
display: block;
z-index: 5;
color: white;
@@ -52,6 +52,7 @@ text{
}
#stats{
- right: 0;
- z-index: 15;
+ right: 10;
+ bottom: 0;
+ z-index: -5;
}
diff --git a/systems.js b/systems.js
index ded2648..c081713 100644
--- a/systems.js
+++ b/systems.js
@@ -157,7 +157,7 @@ export function genSolarSystem(sunOn) {
let bodies = [sun, mercury, venus, earth, moon, mars, jupiter, saturn, uranus, neptune, pluto];
- let scaleRadius = rad => Math.pow(rad, 1/4)* 2 *1E-1;
+ let scaleRadius = rad => Math.pow(rad, 1/5);
for (let b of bodies) {
b.rad = scaleRadius(b.rad);