aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2019-01-31 16:12:38 +0300
committerYaroslav <contact@yaroslavps.com>2019-01-31 16:12:38 +0300
commit3b8ebbf2f612e22af2f81a644d2c71fdaf810af6 (patch)
treef9303d72b622c5f79c6d666626c1af29de61ae7d
parent0623f7b1d94be0513778ae70e7c574a67f743c17 (diff)
downloadcanvas-antics-3b8ebbf2f612e22af2f81a644d2c71fdaf810af6.tar.gz
canvas-antics-3b8ebbf2f612e22af2f81a644d2c71fdaf810af6.zip
Minor non-code related corrections
-rw-r--r--dvd/README.md2
-rw-r--r--dvd/dvd.js2
-rw-r--r--starfield/index.html5
3 files changed, 6 insertions, 3 deletions
diff --git a/dvd/README.md b/dvd/README.md
index ee80d70..4459017 100644
--- a/dvd/README.md
+++ b/dvd/README.md
@@ -1,6 +1,6 @@
# DVD Screensaver #
-Just like the good old days, when you paused that DVD movie for a long time, except now you can watch that sweet old screensaver on demand at any time.
+Just like the good old days, when you paused that DVD movie for a long time, except now you can watch that sweet old screensaver on demand at any time. It might hit the corner one or more times, but it is not guaranteed ;)
To start the animation, just call the following function. You can omit passing the options object for the default experience. For it to work, you need to have a canvas object in your HTML document with id #dvd.
diff --git a/dvd/dvd.js b/dvd/dvd.js
index a0ae45b..c7ea495 100644
--- a/dvd/dvd.js
+++ b/dvd/dvd.js
@@ -1,6 +1,6 @@
/*
DVD Screensaver JS v1.0.0
-Copyright 2018 Yaroslav de la Peña Smirnov
+Copyright 2019 Yaroslav de la Peña Smirnov
All rights reserved.
Redistribution and use in source and binary forms, with or without
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>