TITLE Fourier Epicycle Portrait Machine PROMPT Create a thrilling, blueprint-aesthetic mathematical instrument where you draw ANY closed silhouette with your pointer or finger (or select from iconic curated vector contours) and immediately watch a cascade of rotating Fourier epicycles compute its Discrete Fourier Transform (DFT) and redraw your exact stroke in shimmering luminous gold. Mood: exhilarating mathematical magic, crisp naval-architect blueprint clarity, hypnotic harmonic precision. Palette: Deep blueprint navy `#0C1B2E`, technical grid line `#1C3554`, chalk white `#F0F4F8`, rotating epicycle gold `#F2C14E`, glowing trace coral `#F26A4B`, and active vector cyan `#38BDF8`. Typography: Clean technical monospace (`Menlo`, `Consolas`) for live harmonic count `N`, complex coefficient magnitude `|C_k|`, frequency index `k`, and Fourier series formula `z(t) = Σ C_k · e^(i k t)`, paired with crisp uppercase engineering titles. Layout & Composition: Full-viewport blueprint drafting table rendered on high-DPI Canvas 2D with fine millimeter crosshairs and marginal coordinate ticks. Center stage hosts the live rotating chain of tip-to-tail epicycle circles and radii sweeping out the glowing coral portrait trail. Clean bottom engineering console: **"Harmonics N" slider (1 to 120 circles)**, Preset Contours ("Treble Clef", "Paper Crane", "Crescent & Star", "Classical Bust", "Infinity Knot"), "Draw Your Own" mode toggle, Speed control, and "Show Epicycle Circles" toggle. Motion & Choreography: Exact complex Discrete Fourier Transform computed instantaneously on pointer release, sorting frequency components by amplitude descending (`|C_k|`) so the largest circles drive the macro silhouette and tiny rapid circles carve razor-sharp details at 60fps. Interactions & Signature Moment: Draw any single-stroke closed shape right on the blueprint canvas and release — within a millisecond, the machine computes its exact DFT and unleashes a hypnotic articulated arm of rotating golden epicycle circles that traces your drawing back stroke-for-stroke! Dragging the **Harmonics Slider** smoothly from `N = 1` up to `N = 120` morphs your drawing in real time from a single wobbling ellipse (`N=1`) into a simplified abstract curve (`N=8`) and finally into a razor-sharp faithful portrait (`N=120`). Copy Direction: Authentic signal-processing & mathematical drafting labels — "DISCRETE FOURIER EPICYCLES", "HARMONICS N = 48 / 120", "DRAW ANY CLOSED CONTOUR", "SORTED BY AMPLITUDE |C_k|". DESCRIPTION A blueprint-styled Fourier epicycle drawing machine that computes the exact Discrete Fourier Transform of any contour you draw and traces it live with an articulated chain of rotating golden circles. VISUAL TECHNIQUES - High-DPI Canvas 2D blueprint drafting grid with real-time complex Discrete Fourier Transform (DFT) engine - Amplitude-sorted tip-to-tail rotating epicycle circles, vector radii, and glowing coral persistence trail - Five handcrafted built-in vector contour presets plus freehand pointer/touch contour drawing - Live Harmonics slider (1–120 circles) dynamically reconstructing the silhouette from rough ellipse to exact trace INTERACTION MODEL Draw any closed shape directly on the blueprint canvas (or choose a curated preset contour), then watch rotating Fourier epicycles trace it; scrub the Harmonics slider from 1 to 120 to morph reconstruction fidelity live.