diff options
author | Yaroslav <contact@yaroslavps.com> | 2019-01-31 16:12:38 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2019-01-31 16:12:38 +0300 |
commit | 3b8ebbf2f612e22af2f81a644d2c71fdaf810af6 (patch) | |
tree | f9303d72b622c5f79c6d666626c1af29de61ae7d | |
parent | 0623f7b1d94be0513778ae70e7c574a67f743c17 (diff) | |
download | canvas-antics-3b8ebbf2f612e22af2f81a644d2c71fdaf810af6.tar.gz canvas-antics-3b8ebbf2f612e22af2f81a644d2c71fdaf810af6.zip |
Minor non-code related corrections
-rw-r--r-- | dvd/README.md | 2 | ||||
-rw-r--r-- | dvd/dvd.js | 2 | ||||
-rw-r--r-- | starfield/index.html | 5 |
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. @@ -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> |