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
merged 261 commits into from Jul 21, 2016
Commits
Jump to file or symbol
Failed to load files and symbols.
+3 −11
Diff settings

Always

Just for now

Viewing a subset of changes. View all

double ternary is actually shorter due to wrappers

  • Loading branch information...
pvdz committed Feb 21, 2016
commit 55c942f041f3a6959a95d8ce36a476fef8ad339f
View
@@ -310,17 +310,9 @@ <h1>
atomy += atomvy *= (atomy < fitty || atomy > M-fitty) ? -1 : 1;
for (i = 0; p = pixels[i++];) {
targety = (u = p.u) ? (
k = u % 3,
targetx = atomx + COS(b=u%atomloop) * fitty * (k==1?2:k*tp||tp),
atomy + SIN(b) * fitty * (k*tp||2)
): p.q ? (
targetx = p.X + stw,
p.Y + sth
):(
targetx = p.X,
p.Y
);
k = (u = p.u) % 3;
targetx = u ? atomx + COS(b=u%atomloop) * fitty * (k==1?2:k*tp||tp) : p.q ? p.X + stw : p.X ;
targety = u ? atomy + SIN(b) * fitty * (k*tp||2) : p.q ? p.Y + sth : p.Y;
//acc = 1.8 + .2 * RANDOM();
//acc = 2+ RANDOM()/2;
ProTip! Use n and p to navigate between commits in a pull request.