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

Always

Just for now

Viewing a subset of changes. View all

no need for the pixel.c property if we only use it once anyways

  • Loading branch information...
pvdz committed Feb 21, 2016
commit 521c4fac7a8fde9e7d164b3816621afbfb79f78e
View
@@ -265,7 +265,7 @@ <h1>
i=0;
p=pixels[i++];
// pixel color
p.c = cc[p.u ? p.u % 3 : p.num ? 3 : p.q ? 4 : 5]
) {
// if data[x+0], the space is occupied by a letter. set p.u so the pixel joins the moving "atom".
p.u = data[t=(p.X + p.Y * M) * 4] ? i : 0;
@@ -324,7 +324,7 @@ <h1>
// size of pixel
size = p.q ? 4 : FLOOR(1+(vx+vy)*.2);
c[fillStyle] = p.c;
c[fillStyle] = cc[p.u ? p.u % 3 : p.num ? 3 : p.q ? 4 : 5];
c.fillRect(OX + FLOOR(p.x+=p.A=vx*F) + .5, OY + FLOOR(p.y+=p.B=vy*F) + .5, size, size);
}
ProTip! Use n and p to navigate between commits in a pull request.