Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-sonnet-5-webdev· AnthropicHugging Face Arena WebDev Preferences (2026)

Build me a perlin noise playground. I want an interactive perlin noise field where my…

  1. User

    Build me a perlin noise playground. I want an interactive perlin noise field where my mouse is able to interact with particles. Make it very colorful and customizable.

  2. Claude Assistant

    Good, confirmed the API. Now let's install the package and build the project structure.

    Now let's set up the project structure. I'll create types, palette utilities, the noise-driven canvas component, controls panel, and the main App.

    Now let's build the main App.tsx that ties everything together.

    Now let's check the main.tsx / index.css to make sure Tailwind is set up correctly, then build.

    Good, Tailwind is already wired up. Now let's build the project to confirm everything compiles correctly.

    Build succeeded. Here's a summary of what I built:

    Perlin Flow — Interactive Noise Playground

    • src/utils/noise.ts — wraps simplex-noise's createNoise3D to drive a time-evolving flow field.
    • src/utils/palettes.ts — 6 curated color presets plus HSL-based random palette/color generators.
    • src/types.ts — strongly-typed Settings shape (color mode, mouse mode, particle style, etc.).
    • src/components/NoiseCanvas.tsx — the core canvas engine:
      • Thousands of particles follow a 3D Perlin noise vector field (angle = noise × 2π × curl), animated over time.
      • Mouse interaction with 3 modes: Attract, Repel, Swirl (plus "None"), with adjustable radius/strength and a visible influence ring; click-and-hold intensifies the pull.
      • 4 color modes: Palette, Rainbow, Velocity-based, and Noise-value-based hue mapping.
      • 3 particle render styles: line trails, dots, or glowing "sparks".
      • Adjustable trail fade (motion blur), glow (shadow blur), optional vector-field grid visualization, and hue-cycling animation.
      • Resizes responsively, supports touch devices, and reports live FPS.
    • src/components/ControlsPanel.tsx — a slick glassmorphic sidebar (collapsible on mobile) with sliders for particle count/scale/speed/curl/mouse radius & strength, mode toggle buttons, palette preset swatches + 5 individual color pickers with a randomize button, background color picker, and Pause/Reset/New-Seed actions.
    • src/App.tsx — wires state together and lays out the fullscreen canvas + side panel.
    • Updated index.html title to "Perlin Flow — Interactive Noise Playground".

    The project builds successfully with npm run build.

    Files built: index.html, src/types.ts, src/utils/palettes.ts, src/utils/noise.ts, src/components/NoiseCanvas.tsx, src/components/ControlsPanel.tsx, src/App.tsx

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