Picture in, formula out: z(t)

Upload a picture. The page finds its lines, joins them into one path, and writes that path as a sum of turning arrows. The arrows then draw your picture. All the math runs in your browser. The picture never leaves your device.

Example: tiger line drawing1,000 arrows

Make your own

1,000
50%

Higher detail can keep more lines. Lower detail can remove small marks.

Find lines
18 s

Example: tiger line drawing. 1,000 arrows.

The formula

With 1,000 arrows, sorted from the longest to the shortest.

One full drawing, at most 20 seconds. The GIF is faster than the video.

The formula

A drawing starts as pixels. This page finds edges or dark lines, then follows them as short paths. It joins those paths into one closed route. Between separate lines, the pen moves without adding a bright stroke. These joining moves also belong to the route.

The page samples positions along this route. Each position becomes a complex number: its horizontal coordinate plus i times its vertical coordinate. A discrete Fourier transform finds coefficients for integer frequencies. Each coefficient holds an arrow’s length and starting angle.

Each arrow represents one term, c·ei n t, with angular time t running from 0 to 2π. The integer n sets the number and direction of turns. The zero-frequency term stays fixed. Place each arrow at the previous arrow’s tip. Their sum gives the pen position, so the last tip traces the outline.

This tool writes the same formula using cycle time from 0 to 1, so its exponent contains 2π. It keeps the longest arrows first. Fewer arrows give a simpler approximation; more can recover finer features. Keeping all transform terms reproduces the sampled route at its sample points. A limited sum can smooth corners or stray from the lines.

@EverydayScience49

Science, explained simply.

Clear answers to the questions you ask. Read the explanation, watch the video, and follow the sources.

Nobel Prize in Physics 2026 Explained: Francis Halzen, IceCube and the Neutrino Ghost Particle

Long video9 min read
Read the explanation

Latest posts

All posts
Weather & Climate

Why Does Rain Smell So Good? (It's Not the Rain)

Petrichor is the smell of rain on dry ground. See how soil bacteria make its earthy scent, how raindrops lift it, and why springtails follow it to their food.

Short4 min read
Space & Physics

What Is String Theory? (Particles Are Not Points)

String theory describes particles as tiny strings with different ways to vibrate. A guitar note helps explain the idea and why the energy of a photon matters.

Short3 min read
Space & Physics

What Is String Theory? (Explained in Detail)

String theory links particles and gravity through tiny vibrating strings. Explore its origins, extra dimensions, black holes and the experiments that test it.

Long video17 min read

Topics