aboutsummaryrefslogtreecommitdiffhomepage
path: root/starfield
diff options
context:
space:
mode:
Diffstat (limited to 'starfield')
-rw-r--r--starfield/index.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/starfield/index.html b/starfield/index.html
index 9c7d0f2..1a8dea9 100644
--- a/starfield/index.html
+++ b/starfield/index.html
@@ -39,12 +39,15 @@ html{
</style>
<script>
window.addEventListener("load", function(){
+ var curr_url = new URL(window.location.href);
+ var color = curr_url.searchParams.get("color");
+ color = color == null ? true : color == "true";
warpLaunch({
'max_particles': 1500,
'speed': 70,
'step': 10,
'interactive': true,
- 'color': true,
+ 'color': color,
});
});
</script>