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

Always

Just for now

Viewing a subset of changes. View all

Going down the multi-function route. Store the text printing lines in…

… a function. This will grow the code for a while. Let us hope we are just in a local minimum here.
  • Loading branch information...
pvdz committed Feb 24, 2016
commit 5e84c2fd6725272fde34adbcf1960aa1ab094621
Copy path View file
@@ -223,9 +223,14 @@ <h1>
//c.clearRectc.ClearRect
//c.R=c.clearRect;c.Rc.R
//R='clearRect';c[R]c[R]
c.T = c.fillText;
c.R = c.clearRect;
function drawText(f, m, C, t) {
c.font = M/f + pxserif;
c[fillStyle = 'fillStyle'] = C;
c.fillText(t, M2, M2*m, M);
}
(function R() {
// pretty sure this can be reduced to `data=x&&y`, TBD
data = Z++ % 150 ? 0 : (
@@ -235,16 +240,10 @@ <h1>
s = elements[sn],
c.R(0, 0, M, M),
c.font = M + pxserif,
c[fillStyle = 'fillStyle'] = colors[2],
c.T(sn+1, M2, M2, M),
c[fillStyle] = colors[0],
drawText(1, 1, colors[2], sn+1),
// note: using `'='` and `'('` here to use as explicit minifier hack later
c.T(s[1] == '(' ? s[0] : s[0] == '=' ? 'Uu' + s[1] : s, M2, M2, M),
c.font = M/9 + pxserif,
c[fillStyle] = colors[1],
c.T('qfox.nl', M2, M *.8),
drawText(1, 1, colors[0], '(' == s[1] ? s[0] : s[0] == '=' ? 'Uu' + s[1] : s),
drawText(9, 1.8, colors[1], 'qfox.nl'),
c.getImageData(0, 0, M, M).data
);
ProTip! Use n and p to navigate between commits in a pull request.