primers

A Universe in 280 Characters

Two viral sketches from @yuruyurau fit an entire animated artwork inside a single tweet. This is the whole trick, decoded line by line, with knobs you can turn.

October 10, 2026 · math · engineering · 8 min

The verdict

01The scene

In Japan there is a scene called つぶやきProcessing, "tweet Processing": creative coders who post generative art as code short enough to fit in a post, usually tagged #つぶやきProcessing. No libraries beyond p5.js, no assets, no build step. The code is the artwork, and the constraint is the art form.

These two from @yuruyurau went viral this week. Both are alive below, running their original math. Touch one and your finger stirs it.

The two pieces, live

Left: marbled ink, 10,000 points a frame. Right: silk ribbons, 20,000 points at a whisper of opacity. Both animate forever.

ink · original post
silk · original post

02The skeleton

Here is the ink piece in full. This is the entire program, all 280 characters of it:

a=(y,d=mag(k=(4+cos(y))*cos(i/7),e=y/5-11)-6)=>point((q=99+sin(t*2+e)*9+3*sin(k*2)+d*d*sin(t*2-d)+y/23*k*(e+sin(-d*4)))*sin(c=d/4-t/4+i%2*9)+200,q*cos(c)+200)
t=0,draw=$=>{t||createCanvas(w=400,w);background(9).stroke(w,166);for(t+=PI/60,i=1e4;i--;)a(i/299)}

Strip the golf and five parts remain:

That last line is the whole genre in miniature. Radius and angle, both functions of a sweeping parameter. If you remember one sentence from this primer, remember that one.

03Building the ink, one layer at a time

Watch what each ingredient contributes. Same math, same ten thousand dots, ingredients added one by one:

Four layers of the same sketch

Frozen at the same instant so you can compare. Each layer keeps everything from the one before.

LAYER 1: A CIRCLERadius fixed at 99. Frozen mid-sweep the dots trace an arc; let time run and the arc draws the full ring. This is the skeleton everything hangs on.
LAYER 2: WOBBLEThree sine terms push and pull the radius as the parameter sweeps. The ring goes organic, like a cell seen through a microscope.
LAYER 3: MARBLEThe d*d*sin(t*2-d) term folds the distance field back into the radius. Ripples interfere, and the streaks appear.
LAYER 4: SPLITOdd-numbered dots get their angle rotated by 9 radians. One ring becomes two interleaved lobes: the yin-yang pair.

04The playground

Six variables straight out of the original code, live. Drag them and the artwork above obeys. The presets jump to interesting corners of the space.

Bend the ink yourself

This canvas runs the original math with your numbers. Everything resets when you reload.

05One variable, six pictures: the split

The i%2*9 term is the strangest line in the sketch, so it deserves its own gallery. It rotates every odd-numbered dot by 9 radians relative to the even ones. Here is what happens as that rotation grows from 0:

The split dial, 0 to 4π

Same instant, only the split changes. Notice 2π: a full turn puts the odd dots exactly back where they started, so the pair merges into one ring again. 9 radians is 2π plus 2.72, which is why the original sits just past reunited.

06One variable, six pictures: the ripple

The d*d*sin(t*2-d) term is the marbling. d is distance from a moving point, so this term paints concentric ripples of radius distortion that travel outward as time flows. Scale it and watch the streaks dissolve or take over:

The ripple dial, 0 to 3

At 0 the ink goes smooth and a little boring. At 1, the original balance. Past 2 the ripples shred the form into static.

07The second piece: silk

The silk sketch is the same skeleton wearing different clothes:

a=(y,d=mag(k=(5+3*sin(y+4))*cos(i/7),e=y/5-9)-2.8+sin(t-k*k/9))=>point((q=3*sin(k*2)+k*y/25*(d*2.5+2*sin(e*6-d*5+t*3)))+6*d*cos(c=d-t)+200,q*sin(c)+d*39)
t=0,draw=$=>{{t||createCanvas(w=400,w);background(9).stroke(w,46);for(t+=PI/240,i=2e4;i--;)a(i/885)}}

08How it fits in a tweet

Half the artistry is the compression. A few of the tricks that squeeze a universe into 280 characters:

None of this is obfuscation for its own sake. Every trick buys characters, and the characters buy sine terms, and the sine terms buy beauty. The constraint is doing compositional work: it forces the artist to find the shortest path to the image, and the shortest path is usually the most elegant one.

Sources

Keep exploring

The same atoms, different molecules.

Sines all the way down

Sound, light, JPEG, MP3. Sine and cosine are the atoms of repetition, and these sketches are built from nothing else.

The math you called useless is running your life

School taught math as computation, and computers took that job. What is left is math as a way of seeing, which is exactly what a distance field is.

Black holes are buggy

Another case of math becoming an image: the thin rings on the black hole page are a famous graphics bug, kept on purpose.

Yuru ink, the interactive pair

Both sketches recreated verbatim and running full-screen, with a finger interaction: touch the canvas and the ink parts around it.