ONE-SENTENCE AGENT INSTALL
Free Commercial · No Card Required · No Trial Countdown
Claude Code
Cursor
Codex
Antigravity
OpenClaw
Build my website from Motion3D "Dither Tide — 4-Color Ordered Dither Fluid Shader" (https://motion3d.dev/works/dither-tide/): unpack the standalone ZIP into ./site, keep the 60fps WebGL / GLSL + HTML5 motion skeleton intact, and swap copy, logo & palette for my brandPermanent commercial free license · Copy the command for your Agent and download the ZIP directly.
Production English AI Prompt · 5386 chars
# Build "Dither Tide" — Full-Bleed 4-Color Ordered Dither Fluid WebGL Shader
Build a self-contained, full-viewport generative WebGL2 artwork titled **Dither Tide**: a continuously evolving, domain-warped fluid turbulence field quantized through a razor-sharp screen-locked **4×4 Bayer ordered dithering matrix** onto a strict **4-color thermal-risograph palette**, looping seamlessly every **10.0 seconds** at 60fps.
## Visual Direction & Mood
- **Aesthetic**: Tactile digital printmaking meets infrared thermography and analog halftone cathode displays. Smooth, liquid, oil-on-water marbled swirls glide continuously beneath a rigid, stationary pixel-dot grid.
- **No Smooth Gradients**: Every transition between colors must occur exclusively through crisp square Bayer halftone dot patterns—never soft alpha gradients, never per-channel RGB dithering (which introduces unwanted green/cyan artifacts), and never blurred antialiasing.
- **Optical Color Mixing**: Adjacent palette stops dither against each other so the viewer perceives lush secondary hues—especially an electric **halftone violet/magenta** where Cobalt Blue and Blaze Orange interlock, midnight navy between Black and Blue, and warm apricot between Orange and Cream.
## Exact 4-Stop Quantized Palette (Ordered Low → High)
Hardcode these exact sRGB stops in the fragment shader (no tone mapping, no gamma washout):
1. **Obsidian Void** (`#0C0C0D`, `vec3(0.047, 0.047, 0.051)`) — Scalar `0.00`, deep vortex troughs
2. **Electric Ultramarine** (`#3D2AFE`, `vec3(0.239, 0.165, 0.996)`) — Scalar `0.33`, dominant mid-low currents
3. **Blaze Vermilion** (`#FD5920`, `vec3(0.992, 0.349, 0.125)`) — Scalar `0.67`, fiery mid-high ridges
4. **Warm Bone** (`#F2EEE5`, `vec3(0.949, 0.933, 0.898)`) — Scalar `1.00`, incandescent core blooms
## Viewport Layout & Typography Contract
- **100% Pure Canvas**: Render an edge-to-edge `<canvas>` locked to `100vw × 100dvh` (`position: fixed; inset: 0; overflow: hidden; background: #0C0C0D`).
- **Zero Chrome**: Include NO navbar, NO buttons, NO overlays, NO scrollbars, and NO visible text—the artwork itself fills every pixel cleanly.
- *(Optional extension note only if later adapted as a site hero: pair **Space Grotesk** 700 display type with **JetBrains Mono** metadata in `#F2EEE5` / `#0C0C0D` pills so type remains readable over high-frequency halftone dots.)*
## GLSL Fragment Shader & Motion Specification
Render a single full-screen clip-space triangle with WebGL2 (`antialias: false`, `depth: false`, `alpha: false`):
1. **DPR-Normalized Cell Grid**: Compute `uCellSize = max(2.0, floor((uResolution.x / 640.0) + 0.5))` (targeting ~640 logical dither cells across a 16:9 desktop viewport, yielding ~2.4px cells at 1536×864). Quantize coordinates via `vec2 cell = floor(gl_FragCoord.xy / uCellSize)` and derive isotropic aspect-corrected UV `vec2 p = ((cell + 0.5) * uCellSize - 0.5 * uResolution) / min(uResolution.x, uResolution.y) * 2.1`.
2. **Seamless 10-Second Periodic Fluid Field**: Drive time with `float theta = 6.2831853 * fract(uTime / 10.0)` and map `(cos(theta), sin(theta)) * 0.65` into the `zw` coordinates of a **4D Simplex Noise** FBM function (4 octaves, lacunarity `2.05`, gain `0.5`). This ensures continuous forward organic advection with an invisible seam at `t = 10.0s` (never ping-pong `sin(t)` reversal).
3. **Two-Stage Domain Warping**:
- Stage 1: `vec2 q = vec2(fbm4(p, tVec), fbm4(p + vec2(5.2, 1.3), tVec));`
- Stage 2: `vec2 r = vec2(fbm4(p + 2.8 * q + vec2(1.7, 9.2), tVec), fbm4(p + 2.8 * q + vec2(8.3, 2.8), tVec));`
- Density: `float f = fbm4(p + 3.2 * r, tVec);`
- Remap & shape `f` into `v ∈ [0.0, 1.0]` with `smoothstep(-0.55, 0.72, f)` plus slight mid-range bias so typical frame coverage stays balanced (~10% Black, ~40% Blue, ~35% Orange, ~15% Cream) while dynamically breathing between deep-blue lulls and incandescent cream surges.
4. **Indexed 1D Ramp + 4×4 Bayer Ordered Dithering**:
- Standard 4×4 matrix `[0,8,2,10, 12,4,14,6, 3,11,1,9, 15,7,13,5]` sampled at `ivec2(mod(cell, 4.0))`.
- Center threshold: `float thresh = (bayerVal + 0.5) / 16.0;` (prevents stray single dots in flat extremes).
- Map `float s = clamp(v, 0.0, 1.0) * 3.0; int i0 = int(floor(s)); int i1 = min(i0 + 1, 3);`
- Output `vec3 col = (fract(s) > thresh) ? palette(i1) : palette(i0);` directly to `fragColor`.
## Tech Stack, Assets & Performance
- **Stack**: Vite + TypeScript + Vanilla WebGL2 (zero external runtime libraries or image/texture assets—100% procedural GLSL).
- **Performance & Accessibility**: Cap canvas DPR to `Math.min(window.devicePixelRatio, 2)`, resize cleanly via `ResizeObserver`, pause `requestAnimationFrame` on `document.hidden`, and slow time progression to `0.15×` (or freeze cleanly) when `prefers-reduced-motion: reduce` is active. Target <4ms GPU frame time for locked 60fps.
## Visual Acceptance Checklist
- Inspecting any screenshot at 400% zoom reveals ONLY the 4 exact solid hex colors arranged in crisp, non-blurry square 4×4 Bayer dot patterns.
- Zero green, cyan, or muddy gray pixels anywhere on screen.
- Bayer grid stays locked in screen space while swirling marbled ribbons fold and advect smoothly underneath.
- Looping from `00:09.9` to `00:00.0` shows zero pop, jump, or direction reversal.
- Swirls remain circular/isotropic on both ultrawide desktop and vertical mobile viewports.
Architecture, Motion & Palette
Original Creative Direction
Dither Tide delivers an instantly recognizable technical-editorial aesthetic with ultra-low GPU footprint — ready to drop behind hero typography, launch pages, or interactive creative tools.
Color System (Click to copy Hex)
Layout & Section Architecture
Edge-to-edge full-screen shader canvas with subtle corner HUD for live palette inspection, fluid disturbance cursor interaction, and clean negative space ready for hero overlays.
Motion & Engineering Stack
Pure WebGL GLSL fragment shader running two-pass domain-warped fractional Brownian motion quantized through a crisp 4×4 Bayer threshold matrix into Obsidian, Electric Blue, Flame Orange, and Warm Bone.
Implementation Notes & Craft Details
- Sample the 4×4 Bayer matrix in gl_FragCoord screen pixels (divided by crisp integer scale) so dither dots never swim or shimmer during resize.
- Add gentle pointer-velocity ripple injection with exponential decay so cursor movement feels fluid rather than jittery.
- Keep loop periods mathematically harmonic so recorded hero clips loop without a visible seam.