Commit Graph

64 Commits

Author SHA1 Message Date
Asif Bacchus
14931c7dc9 update comment 2020-04-10 15:53:11 -06:00
Asif Bacchus
db11078881 update base index sample page styles and content 2020-04-10 15:51:57 -06:00
Asif Bacchus
e6ab47bfdd update minified js, checksums and SRI 2020-04-10 15:08:33 -06:00
Asif Bacchus
5d44e2d93b remove down-right bias when bouncing normally 2020-04-10 15:04:10 -06:00
Asif Bacchus
81e41b9fd3 redefine vertical and horizontal bouncing
Set option to remove bounce in either/both directions.
Replace old speed based logic.
Allow for combinations of directional speeds.
Rename speed variables for consistency.
2020-04-10 14:47:26 -06:00
Asif Bacchus
818c82ad6c add sample pages 2020-04-10 12:50:23 -06:00
Asif Bacchus
c145426d69 proofread 2020-04-10 12:50:16 -06:00
Asif Bacchus
5f7d025b1e update readme 2020-04-10 12:05:04 -06:00
Asif Bacchus
b2799d3b66 update minified js, checksums and SRI 2020-04-10 11:35:21 -06:00
Asif Bacchus
cc83a10145 move javascript back to end of body 2020-04-10 11:31:58 -06:00
Asif Bacchus
330790a6db remove colour settings, use CSS vars only 2020-04-10 11:31:31 -06:00
Asif Bacchus
fc13dc00bf update palette 2020-04-10 11:30:44 -06:00
Asif Bacchus
95d99ff803 change speed calculations
Allow for independent horizontal and vertical speeds.
Allow for negative speeds to reverse directions.
Directional speed resets general speed to 1.
2020-04-10 11:26:31 -06:00
Asif Bacchus
4ba30a0a35 fix mistake in if/else if/else checkParams 2020-04-10 10:09:54 -06:00
Asif Bacchus
78193fa588 alphabetize CSS 2020-04-10 09:34:59 -06:00
Asif Bacchus
777b690443 add link for demonstration 2020-04-10 09:29:31 -06:00
Asif Bacchus
23873f5759 move javascript link to head and defer 2020-04-10 09:23:53 -06:00
Asif Bacchus
735dab3aeb update minified script, checksums and html SRI 2020-04-10 08:55:17 -06:00
Asif Bacchus
b8fc2eefe8 change attribution comment 2020-04-10 08:51:47 -06:00
Asif Bacchus
bbf7e3d2f2 change particle number calculation
Based on 1% of window width.
numParticles is a straight multiplier, so increment percentage. Simple.
2020-04-10 08:51:16 -06:00
Asif Bacchus
d22516867b change sample palette to 'electric blue' 2020-04-10 08:48:02 -06:00
Asif Bacchus
0dcbb06b77 update checksums 2020-04-10 05:13:07 -06:00
Asif Bacchus
e4ecf30ec0 fix typo in comment 2020-04-10 05:11:42 -06:00
Asif Bacchus
1692fcc309 use sub-resource integrity on loaded script 2020-04-10 05:10:37 -06:00
Asif Bacchus
b9b052ef54 create integrity checksum list file 2020-04-10 05:10:25 -06:00
Asif Bacchus
6a9f5f42ed rename scripts, update minified version 2020-04-10 05:10:07 -06:00
Asif Bacchus
46770f4da3 add opacity parameter 2020-04-10 05:04:02 -06:00
Asif Bacchus
aec19308ab move background to body, change var name 2020-04-10 04:57:50 -06:00
Asif Bacchus
3a124e6809 add line-width parameter 2020-04-10 04:54:26 -06:00
Asif Bacchus
4b4682c277 change default sizeMultiplier to 5 2020-04-10 04:49:21 -06:00
Asif Bacchus
7f8bdb188d dummy text and styling 2020-04-08 08:26:58 -06:00
Asif Bacchus
00ddc1e918 minify js and use 2020-04-08 08:20:32 -06:00
Asif Bacchus
9aaed758f6 fix typos 2020-04-08 08:10:53 -06:00
Asif Bacchus
d433bc6edc change sample speed 2020-04-08 08:03:12 -06:00
Asif Bacchus
398e85a7b4 invert connectionDensity so it makes more sense 2020-04-08 07:52:15 -06:00
Asif Bacchus
07239b51b3 correction to numParticles check 2020-04-08 07:51:37 -06:00
Asif Bacchus
3983287420 allow for speed=0 2020-04-08 07:27:02 -06:00
Asif Bacchus
384589e9a2 add connection and connection density params 2020-04-08 07:21:24 -06:00
Asif Bacchus
99ddb6793f fix console message typos 2020-04-08 07:19:31 -06:00
Asif Bacchus
5871623a82 whoops! let parameters be implicitly defined! 2020-04-08 07:11:03 -06:00
Asif Bacchus
f15eec2eb9 define parameters 2020-04-08 07:07:54 -06:00
Asif Bacchus
4ab3b04c9c function to check colours, console help displayed 2020-04-08 07:07:11 -06:00
Asif Bacchus
26cd9261e7 create func checkParams
Better organization.
Added helpful console messages.
2020-04-08 06:37:51 -06:00
Asif Bacchus
e345b58555 change particles variable to avoid confusion 2020-04-08 06:31:19 -06:00
Asif Bacchus
ba23f94eed hardcode speed division for consistency 2020-04-08 06:15:54 -06:00
Asif Bacchus
b3038644ad redo parameter handling properly, allow dynamic 2020-04-08 06:06:12 -06:00
Asif Bacchus
fb5a4675f8 change speed parameter base to 100 2020-04-08 05:26:04 -06:00
Asif Bacchus
fe51090807 create speed parameter 2020-04-08 05:23:28 -06:00
Asif Bacchus
24af3c33ac add particle multiplier parameter 2020-04-08 05:12:44 -06:00
Asif Bacchus
8d08d145c4 hover effect based on parameter (default enabled) 2020-04-08 05:10:24 -06:00