Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-opus-4-7-thinking-webdev· AnthropicHugging Face Arena WebDev Preferences (2026)

Build an automated spirograph that draws hypnotic geometric patterns with adjustable…

  1. User

    Build an automated spirograph that draws hypnotic geometric patterns with adjustable gear ratios, pen position, color gradients, and drawing speed. Auto-starts.

  2. Claude Assistant

    Build succeeded. Here's what I built:

    Hypnograph — Automated Spirograph

    A canvas-based spirograph that auto-starts drawing hypnotic hypotrochoid patterns the moment the page loads.

    Features:

    • 🎨 Live canvas with device pixel ratio-aware rendering, subtle glow, and DPR scaling
    • ⚙️ Adjustable gear ratios: Fixed gear (R), moving gear (r), and pen offset (d) via sliders — changes redraw instantly
    • 🌈 Color gradients: 6 preset palettes (Neon Dream, Sunset, Ocean, Aurora, Fire, Mono Cyan) that cycle smoothly across the drawing
    • ⚡ Drawing speed control (1–40× steps per frame) plus adjustable line width
    • ✨ Glow toggle for hypnotic bloom effect
    • 🔄 Auto-morph mode randomly nudges parameters at each cycle completion for endless variation
    • 🎲 Randomize button for instant new patterns
    • ⏯ Pause / Play and Clear controls
    • 📐 Displays the r/R ratio and gcd so you can see when a curve will close
    • Between cycles, the canvas fades slightly (instead of hard-clearing) for a smooth trailing effect
    • Responsive layout: canvas on left, control panel on the right (stacked on mobile)

    The math uses the standard hypotrochoid parametric equations with automatic cycle-length detection via gcd, so patterns close cleanly regardless of ratio.

    Files built: index.html, src/App.tsx

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.