Alle Motions

Oszilloskop-Intro

Ein einziger Elektronenstrahl zeichnet alles: Lissajous-Figuren, Drahtgitter, Monogramm

Created with AI
  1. 0–7,6 s Punkt, Linie, Sinuswelle — dann X-Y-Betrieb, die Lissajous-Figur rastet bei 1:1, 3:2 und 5:4 ein
  2. 7,6–11,5 s Die Figur legt sich auf vier Großkreise, die Bögen strecken sich zu einem rotierenden Drahtgitterkörper
  3. 11,5–14,2 s Der Körper wird wie ein Faden abgezogen, der Strahl schreibt P, Knoten und M in einem Zug
  4. 14,2–18,2 s Darunter schreibt der Strahl „AUTOMATION & AI“ in Strichschrift, die Rückfahrten bleiben schwach sichtbar
  5. 18,2–20 s Das Bild fällt zu einer Linie zusammen, dann zum Punkt — der Loop beginnt von vorn
  • Oszilloskop
  • 20 s Loop
  • 1080² · 30 fps
  • Canvas 2D
  • 1,4 MB

Prompt

Englisch · für Claude Code, Codex & Co. · 821 Wörter
Build a 20-second looping intro, 1080×1080, drawn entirely by one electron beam on an analogue X-Y oscilloscope. Nothing on the tube is a filled shape or a font: every frame is the path of a single beam. The only name on screen is the monogram "PM".

DESIGN
Device face #060807, a recessed tube (880×712, rounded corners) lit from the top left: shadow under the upper lip, a hairline of light on the lower right edge. Tube face near-black green with a 10×8 graticule (84 px per division, fifths on the centre axes), everything on the glass bent by a slight barrel curvature. Beam in P31 phosphor green rgb(88 255 156), 2.3 px, drawn additively so hot spots burn to white, with a light halo (the beam layer halved four times and laid back over itself). Outside the tube, in Geist Mono: printed legends CH1 X, RATIO X:Y, CH2 Y above and CH1 VOLTS/DIV, TIME/DIV, CH2 VOLTS/DIV below (15 px, grey), each with a 27 px value in dim green that switches in steps like a rotary switch (OFF / 1.00 kHz / VECTOR, GND / 2 V / 1 V, 0.2 ms / 0.1 ms / X–Y), plus a small LOCK lamp next to the ratio.

STORYBOARD
0–7.6 s  A resting dot stretches into a sweep line (0.7), CH2 gain comes up: a sine wave, two periods (1.5). The time base stretches it to one period (2.4), then X switches from sawtooth to sine and the wave curls into a circle: 1:1, LOCK (3.9). The ratio glides to 3:2 (lock 5.4) and 5:4 (lock 6.9); while it glides the figure does not close and tumbles as a mesh, then snaps shut. Locked figures lean slowly.
7.6–11.5 s  The 5:4 figure wraps, point for point, onto four great circles of a sphere that starts to turn; the arcs straighten one after another into the 24 edges of a cuboctahedron, drawn as one closed stroke with a short dwell at every vertex. The solid rotates, then shrinks and slides right.
11.5–14.2 s  The stroke of the solid is pulled out like thread and laid down in one go as P (from its foot, round the bowl, back into the stem), a knot between the letters (a tight spiral where the beam parks) and M, with faint retraces between them. A cursor dot waits where the text will start.
14.2–18.2 s  The monogram steps up; the beam writes AUTOMATION & AI below it in a stroke font built from line segments (octagonal O, pointed A, kerned capitals), pen tip glowing, retraces routed through the gap, never across letters. Hold 1.7 s.
18.2–20 s  Y gain to zero: the picture collapses into a burning line; X gain to zero: the dot. It flares, settles, and swells slightly before frame 0.

MOTION
Model the beam, not the picture. The display is refreshed 60 times a second; a frame shows the last eight passes weighted by an exponential decay of 45 ms and normalised, so anything that moves leaves a fading trail. Along a pass every segment carries the time the beam spent on it: brightness = time / length, capped. Slow stretches, turning points and vertex dwells glow; retraces run 12× faster and stay faint. The two glides add a whole number of cycles (integrate the frequency analytically), so a locked figure closes inside one pass. Every transition is a morph along the path parameter u: each point of one stroke moves to the point of the next stroke with the same u. Choose the start vertex, direction and orientation of the solid that minimise that travel. Where the picture moves fast, integrate the afterglow on a 240 Hz grid so trails smear instead of strobing. Signal noise: 0.3 px of seeded value noise per pass. Critically damped or smoothstep easing only; nothing overshoots.

TECHNIQUE
- One self-contained HTML page plus one JS file (no inline script, no libraries, no network requests). Stage exactly 1080×1080 CSS px, or the size named above (1080×1920 for portrait).
- Expose window.MOTION = { duration, fps: 30, width, height, seek(t) } with the stage size in width and height. seek(t) redraws the frame for time t from scratch: no state between frames, no Math.random (seeded PRNG only), no Date, no CSS transitions, no timers.
- Loop: seek(0) and seek(duration) must look identical.
- With ?render=1 the stage sits unscaled at the top left (for frame capture). Without it, scale the stage to fit the window and loop with requestAnimationFrame.
- prefers-reduced-motion: show one representative still, no loop.

CHECK
Render stills at the listed times, look at every one, fix anything that overlaps, is cut off, aliased or unreadable, then render again. Report only when frame 0 equals the last frame.
Stills: every second, plus every 0.1 s from 0.5 s before to 0.5 s after 7.6, 11.5, 14.2, 18.2 and across the loop seam; frame 0 must equal frame 20.

So bauen Sie es nach

  1. Prompt in einen Coding-Agenten geben

    Einen leeren Ordner anlegen, den Prompt in Claude Code, Codex oder Cursor einfügen. Der Agent schreibt eine HTML-Seite und ein Script — die Animation läuft danach direkt im Browser.

  2. Standbilder prüfen lassen

    Der Prompt verlangt, dass der Agent Standbilder rendert und selbst ansieht. Schärfen Sie nur nach, was Ihnen am Bild nicht gefällt: „Szene 3 ist zu voll“ wirkt besser als ein neuer Prompt.

  3. Zu MP4 rendern

    Weil jede Animation über window.MOTION.seek(t) jedes Bild exakt zeichnen kann, rendert ein kleines Script sie Bild für Bild — ohne Ruckler, ohne Bildschirmaufnahme. Danach setzt ffmpeg die Bilder zum Clip zusammen.

Befehle zum Rendern render.mjs herunterladen
# 1 · Render every frame (Chrome, Node ≥ 22)
node render.mjs http://localhost:3000/ \
  frames/ frames 30

# 2 · Join the frames into an MP4
ffmpeg -framerate 30 -i frames/%05d.png \
  -c:v libx264 -preset slow -crf 22 \
  -pix_fmt yuv420p -movflags +faststart \
  my-motion.mp4

So entsteht ein Clip mit Claude Code

Hintergrund

Ein Intro im Stil eines analogen XY-Oszilloskops: Ein Strahl wird vom Punkt zur Sinuswelle, rastet als Lissajous-Figur bei 1:1, 3:2 und 5:4 ein, faltet sich zu einem rotierenden Drahtgitterkörper und schreibt in einem Zug das Monogramm PM und „Automation & AI“. Mit Phosphor-Nachleuchten, 20 Sekunden, mit Prompt.

Was ich dabei gelernt habe

Der Röhren-Look entsteht nicht durch einen Filter, sondern durch das Modell: Ich zeichne keinen Umriss, sondern den Weg des Strahls und rechne die Helligkeit aus Verweildauer durch Strecke. Umkehrpunkte, Ecken und Nachleuchten ergeben sich dann von selbst.

Inspiration

Ausgangspunkt war ein Prompt von @rneayan ((öffnet in neuem Tab)) auf Skillry. Den Wortlaut finden Sie dort; der Prompt oben ist meine eigene Fassung.

Weitere Motions

Kontakt

Lassen Sie uns
Ihr Projekt
besprechen.

Schreiben Sie mir eine Nachricht oder füllen Sie das Kontaktformular aus. Ich melde mich innerhalb von 24 Stunden.

Paul Mill

Paul Mill

hallo@paulmill.com