New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step branch #1

merged 261 commits into from Jul 21, 2016
Jump to file or symbol
Failed to load files and symbols.
+1 −4
Diff settings


Just for now

Viewing a subset of changes. View all

move stuff together

  • Loading branch information...
pvdz committed Feb 21, 2016
commit 4eac2ebcf0f05e3e6954556ee6b3deca3ad251d5
@@ -228,14 +228,11 @@ <h1>
K = 200; // particle count wide and high (so total num of particles is K*K)
M = MIN(W= a.width, H= a.height); // get smallest dimension, serves as view dimensions (a square)
M2 = FLOOR(M/2);
atomy = atomx = M2 = FLOOR(M=MIN(W= a.width, H= a.height))/2;
OX = FLOOR(W/2 - M2);
OY = FLOOR(H/2 - M2);
F = 0.85; // friction. lower means faster pixels.
atomx = M2;
atomy = M2;
atomvx = 5; // atom movement delta.
atomvy = 3; // atom movement delta.
mt = 32; // time factor, cycle progress (0..1) every this many loops. keep 32
ProTip! Use n and p to navigate between commits in a pull request.