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.
+5 −5
Diff settings

Always

Just for now

Viewing a subset of changes. View all

1.29 / 1231 / 1132; unravel this so we can use the cache in that last…

… place. dont worry we will go down again
  • Loading branch information...
pvdz committed Feb 26, 2016
commit 933f5ebbd37d2f3f8629f8dfa5f3777c99d42d15
Copy path View file
@@ -127,7 +127,7 @@ <h1>
// https://closure-compiler.appspot.com/home
// http://siorki.github.io/regPack.html
// 1.29 / 1228 / 1129 (closure compiler / regpacked, with / without wrappers and vars decls)
// 1.29 / 1231 / 1132 (closure compiler / regpacked, with / without wrappers and vars decls)
var a, b, c, d;
@@ -231,15 +231,15 @@ <h1>
// if data[x+0], the space is occupied by a letter. set u so the pixel joins the moving "atom".
u = data[imageDataIndex++] ? i %600: 0;
isqfoxnl = data[imageDataIndex++]; // qfox.nl
k = u % 3 * tp;
k = u % 3;
targetx = u ? atomx + COS(u) * fitty * (k==tp?2:k||tp) : isqfoxnl ? X + SIN(Z%M/M2 * 3) * M2*.6 : X;
targety = u ? atomy + SIN(u) * fitty * (k||2) : isqfoxnl ? Y + tp * fitty : Y;
targetx = u ? atomx + COS(u) * fitty * (k*tp==tp?2:k*tp||tp) : isqfoxnl ? X + SIN(Z%M/M2 * 3) * M2*.6 : X;
targety = u ? atomy + SIN(u) * fitty * (k*tp||2) : isqfoxnl ? Y + tp * fitty : Y;
p.x+=p.A= ~~p.A*.9 + RANDOM() - COS(dtan= O.atan2(p.y - targety, p.x - targetx)) * mk;
p.y+=p.B= ~~p.B*.9 + RANDOM() - SIN(dtan) * mk;
c[fillStyle] = colors[u ? u % 3 : data[imageDataIndex++] ? 3 : isqfoxnl ? 4 : 5];
c[fillStyle] = colors[u ? k : data[imageDataIndex++] ? 3 : isqfoxnl ? 4 : 5];
c.fillRect(~~p.x, ~~p.y, size = u?mk:isqfoxnl ? mk*2 :~p.A+~p.B, size);
}
ProTip! Use n and p to navigate between commits in a pull request.