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
b2799d3b66
update minified js, checksums and SRI
2020-04-10 11:35:21 -06:00
Asif Bacchus
330790a6db
remove colour settings, use CSS vars only
2020-04-10 11:31:31 -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
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
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
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
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
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
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
Asif Bacchus
bf5321eec5
set mouse avoidance via parameter, default enabled
2020-04-08 05:02:34 -06:00
Asif Bacchus
c0e4424257
make everything one function
2020-04-08 05:00:04 -06:00
Asif Bacchus
89263b1495
set colours via css variables
2020-04-08 04:47:22 -06:00
Asif Bacchus
5b0d2d108a
initialize mouse position as undefined
...
This stops the particles from sticking at 0,0 on start.
2020-04-08 04:35:04 -06:00
Asif Bacchus
1a519a1d55
change canvas id
2020-04-08 04:27:32 -06:00
Asif Bacchus
e52855f954
change stroke colour when mouse nearby
2020-04-08 04:18:55 -06:00
Asif Bacchus
507c5f6e38
basic animation as per tutorial
2020-04-08 04:08:51 -06:00
Asif Bacchus
b410e55915
general skeleton and linking
2020-04-08 02:56:45 -06:00