Tag Archives: dwitter

Dissecting A Dweet #2: Spirograph Design Generator

Today we will be examining this crazy small JavaScript program that generates an array of endless random spirograph designs. Read on for a full explanation of how it works. for(i=144;q=(8+t>>3)*i–;x.fillRect(i%16*120+T(S),(i>>4)*120+T(C),2,2))t%24<1?c.width|=r=n=>S(q**n)*9|0:T=f=>5*r(4)*f(r(3)*t)+9*f(r(2)*t)+60

Posted in JavaScript | Tagged , , , | 5 Comments

Dissecting A Dweet #1: Spiral JavaScript Quine

This is the first in a series of posts where I will analyze a dweet’s code, explain how it works, and why it was done that way. A dweet is a 140 character JavaScript program published on Dwitter. The goal … Continue reading

Posted in JavaScript | Tagged , , , | 7 Comments