Last active
August 29, 2015 14:04
-
-
Save mfikes/27e7975f9edf4490adcb to your computer and use it in GitHub Desktop.
chambered keyword support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;(function(){ | |
| "undefined" !== typeof Math.imul && (Math.imul.c ? Math.imul.c(4294967295, 5) : Math.imul.call(null, 4294967295, 5)); | |
| var e = function() { | |
| function a(a) { | |
| return a * b.b(); | |
| } | |
| function c() { | |
| return Math.random.b ? Math.random.b() : Math.random.call(null); | |
| } | |
| var b = null, b = function(b) { | |
| switch(arguments.length) { | |
| case 0: | |
| return c.call(this); | |
| case 1: | |
| return a.call(this, b); | |
| } | |
| throw Error("Invalid arity: " + arguments.length); | |
| }; | |
| b.b = c; | |
| b.a = a; | |
| return b; | |
| }(); | |
| function h(a) { | |
| a = e.a(a); | |
| return 0 <= a ? Math.floor.a ? Math.floor.a(a) : Math.floor.call(null, a) : Math.ceil.a ? Math.ceil.a(a) : Math.ceil.call(null, a); | |
| } | |
| e = function() { | |
| function a(a) { | |
| return(Math.random.b ? Math.random.b() : Math.random.call(null)) * a; | |
| } | |
| function c() { | |
| return b.a(1); | |
| } | |
| var b = null, b = function(b) { | |
| switch(arguments.length) { | |
| case 0: | |
| return c.call(this); | |
| case 1: | |
| return a.call(this, b); | |
| } | |
| throw Error("Invalid arity: " + arguments.length); | |
| }; | |
| b.b = c; | |
| b.a = a; | |
| return b; | |
| }(); | |
| h = function(a) { | |
| return Math.floor.a ? Math.floor.a((Math.random.b ? Math.random.b() : Math.random.call(null)) * a) : Math.floor.call(null, (Math.random.b ? Math.random.b() : Math.random.call(null)) * a); | |
| }; | |
| function k() { | |
| var a = p; | |
| return a * a * 3 + 81 * a >> 2 & 3; | |
| } | |
| for (var v = function() { | |
| function a(a, b, c) { | |
| return(a >> c & 255) * b / 255 << c; | |
| } | |
| function c(a, c) { | |
| return b.d(a, c, 0); | |
| } | |
| var b = null, b = function(b, u, A) { | |
| switch(arguments.length) { | |
| case 2: | |
| return c.call(this, b, u); | |
| case 3: | |
| return a.call(this, b, u, A); | |
| } | |
| throw Error("Invalid arity: " + arguments.length); | |
| }; | |
| b.c = c; | |
| b.d = a; | |
| return b; | |
| }(), D = 2 * Math.PI, ea = Math.PI / 2, F = document.getElementById("game").getContext("2d"), G = Array(262144), H = 0;;) { | |
| if (64 > H) { | |
| for (var I = 0;;) { | |
| if (64 > I) { | |
| for (var J = 0;;) { | |
| if (64 > J) { | |
| var M = J << 12 | I << 6 | H, N = .4 * (I - 32.5), O = .4 * (J - 32.5); | |
| G[M] = h(16); | |
| Math.random() > Math.sqrt(Math.sqrt(N * N + O * O)) - .8 && (G[M] = 0); | |
| J += 1; | |
| } else { | |
| break; | |
| } | |
| } | |
| I += 1; | |
| } else { | |
| break; | |
| } | |
| } | |
| H += 1; | |
| } else { | |
| break; | |
| } | |
| } | |
| for (var P = Array(12288), Q = [null], R = [null], S = [null], T = 1;;) { | |
| if (16 > T) { | |
| R[0] = 255 - (96 * Math.random() | 0); | |
| for (var U = 0;;) { | |
| if (48 > U) { | |
| for (var p = 0;;) { | |
| if (16 > p) { | |
| Q[0] = 9858122; | |
| 4 === T && (Q[0] = 8355711); | |
| if (4 !== T || 0 === (3 * Math.random() | 0)) { | |
| R[0] = 255 - (96 * Math.random() | 0); | |
| } | |
| 1 === T && (U < k() + 18 ? Q[0] = 6990400 : U < k() + 19 && (R[0] = 2 * R[0] / 3)); | |
| if (7 === T) { | |
| if (Q[0] = 6771249, 0 < p && 15 > p && (0 < U && 15 > U || 32 < U && 47 > U)) { | |
| Q[0] = 12359778; | |
| var V = [p - 7], W = [(U & 15) - 7]; | |
| 0 > V[0] && (V[0] = 1 - V[0]); | |
| 0 > W[0] && (W[0] = 1 - W[0]); | |
| W[0] > V[0] && (V[0] = W[0]); | |
| R[0] = 196 - h(32) - V[0] % 3 * 32; | |
| } else { | |
| 0 === h(2) && (R[0] = R[0] * (150 - 100 * (p & 1)) / 100); | |
| } | |
| } | |
| 5 === T && (Q[0] = 11876885, 0 === (p + 4 * (U >> 2)) % 8 || 0 === U % 4) && (Q[0] = 12365733); | |
| 9 === T && (Q[0] = 4210943); | |
| S[0] = R[0]; | |
| 32 <= U && (S[0] /= 2); | |
| 8 === T && (Q[0] = 5298487, 0 === h(2) ? Q[0] = 0 : S[0] = 255); | |
| var X = Q[0], Y = S[0]; | |
| P[p + 16 * U + 768 * T] = v.d(X, Y, 16) | v.d(X, Y, 8) | v.c(X, Y); | |
| p += 1; | |
| } else { | |
| break; | |
| } | |
| } | |
| U += 1; | |
| } else { | |
| break; | |
| } | |
| } | |
| T += 1; | |
| } else { | |
| break; | |
| } | |
| } | |
| function Z(a) { | |
| for (var c = a.createImageData(424, 240), b = c.data, z = Date.now() % 1E4 / 1E4, u = .4 * Math.sin(z * D) + ea, A = .4 * Math.cos(z * D), $ = Math.cos(A), A = Math.sin(A), aa = Math.cos(u), u = Math.sin(u), z = 32.5 + 64 * z, l = 0;;) { | |
| if (101760 > l) { | |
| c.data[4 * l + 3] = 255, l += 1; | |
| } else { | |
| break; | |
| } | |
| } | |
| for (l = 0;;) { | |
| if (424 > l) { | |
| for (var ba = (l - 212) / 240, E = 0;;) { | |
| if (240 > E) { | |
| for (var K = (E - 120) / 240, L = 1 * $ + K * A, K = K * $ - 1 * A, ca = ba * aa + L * u, L = L * aa - ba * u, d = 0, q = 0, r = 255, s = 0, g = 32;;) { | |
| if (3 > d) { | |
| var f = 0 === d ? ca : 1 === d ? K : 2 === d ? L : null, t = 1 / (0 > f ? -f : f), w = ca * t, B = K * t, da = L * t, m = 0 === d ? z - (z | 0) : 1 === d ? .5 : 2 === d ? .5 : null, n = 0 < f ? 1 - m : m, m = z + w * n, C = 32.5 + B * n, x = 32.5 + da * n; | |
| a: { | |
| m = 0 === d && 0 > f ? m - 1 : m; | |
| C = 1 === d && 0 > f ? C - 1 : C; | |
| x = 2 === d && 0 > f ? x - 1 : x; | |
| for (f = t * n;;) { | |
| if (f < g) { | |
| n = G[(x & 63) << 12 | (C & 63) << 6 | m & 63]; | |
| if (0 < n) { | |
| var y; | |
| 1 === d ? (y = 16 * x & 15, y = 0 > B ? y + 32 : y) : y = (16 * C & 15) + 16; | |
| n = P[(1 === d ? 16 * m & 15 : 16 * (m + x) & 15) + 16 * y + 768 * n]; | |
| y = (d + 2) % 3; | |
| if (0 < n) { | |
| q = 255 - (f / 32 * 255 | 0); | |
| r = 255 * (255 - 50 * y) / 255; | |
| s = n; | |
| g = (s >> 8 & 255) * r * q / 65025; | |
| t = (s & 255) * r * q / 65025; | |
| w = 4 * (l + 424 * E); | |
| b[w + 0] = (s >> 16 & 255) * r * q / 65025; | |
| b[w + 1] = g; | |
| b[w + 2] = t; | |
| g = [n, r, q, f]; | |
| break a; | |
| } | |
| } | |
| C += B; | |
| x += da; | |
| f += t; | |
| m += w; | |
| } else { | |
| t = (q >> 8 & 255) * r * s / 65025; | |
| w = (q & 255) * r * s / 65025; | |
| B = 4 * (l + 424 * E); | |
| b[B + 0] = (q >> 16 & 255) * r * s / 65025; | |
| b[B + 1] = t; | |
| b[B + 2] = w; | |
| g = [q, r, s, g]; | |
| break a; | |
| } | |
| } | |
| g = void 0; | |
| } | |
| q = g[0]; | |
| r = g[1]; | |
| s = g[2]; | |
| g = g[3]; | |
| d += 1; | |
| } else { | |
| break; | |
| } | |
| } | |
| E += 1; | |
| } else { | |
| break; | |
| } | |
| } | |
| l += 1; | |
| } else { | |
| break; | |
| } | |
| } | |
| return a.putImageData(c, 0, 0); | |
| } | |
| setInterval(function() { | |
| return Z.a ? Z.a(F) : Z.call(null, F); | |
| }, 10); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment