WikiWayne
Local AIWikiBenchGamesPrompt LabGrok BotAI ToolsTech NewsAboutBlogContact

As an Amazon Associate I earn from qualifying purchases. This site contains affiliate links.

WikiWayne

Independent notes on local AI, real hardware, Grok, and the games that come out of that stack.

Categories

  • Local AI Hub
  • Local AI Glossary
  • Local AI
  • AI Tools
  • Tech News

Quick Links

  • About Wayne
  • Games
  • Grok Bot
  • Contact
  • Links
  • ADHD MaxxxingSponsored
  • WikiBench
  • Methodology
  • Editorial Standards
  • Disclosures
  • Privacy Policy
  • Sitemap

Follow on X

Hardware, local models, Grok, and what I actually ship.

Follow @wikiwayne
WikiWayne© 2026
PrivacyWikiBenchMethodologyEditorialDisclosuresTermsSitemap
Home/Prompt Lab/Ebru Engine

Ebru Engine

PL-161HardFluids & particlesWebGL shaders

A marbling bath in raw WebGL2: real pigment advection and pressure projection, comb-driven ridges and a faithful print transfer.

Ebru Engine
Download fileMade for ChatGPT, Claude, Gemini, Grok and other AI tools

How to run

  1. Download the file or copy the prompt.
  2. Upload or paste it into any AI chat or coding tool, and send.
  3. Save the HTML it gives you as a file and open it in Chrome.
  4. Open it with ?test=1 and look in the browser console for the TEST lines.

What it tests

A marbling bath in raw WebGL2: real pigment advection and pressure projection, comb-driven ridges and a faithful print transfer.

The checks

  1. First frame: bath spans at least 70% of the screen height, pigment occupies at least 8% of bath pixels, and no external resource files are requested.
  2. Advection is real: a directional stroke displaces the pigment center of mass by at least 0.08 bath units in the stroke direction while keeping pigment mass within 5% after 20 s.
  3. Comb feathering: one edge-to-edge comb sweep creates at least 12 alternating high-curvature ridges and increments combSweeps exactly once.
  4. Print fidelity: after 3 s of paper contact, the lifted print matches the bath pigment in at least 90% of sampled colored cells and increments prints exactly once.
  5. Attract routine: advancing 30 s produces at least 8 drops, 1 stylus stroke, 1 comb sweep and 1 lifted print, then starts a new bath with zero console errors.

Runs by model

No runs posted yet. Be the first: post yours and tag @wikiwayne.

Show the full prompt
EBRU ENGINE: Pigment That Remembers the Comb
HOOK OBJECT: window.__ebru

Build "EBRU ENGINE": a full-screen Turkish marbling bath in raw WebGL2 (no Three.js, no libraries) where viscous pigment spreads over a shallow water size, a stylus drags real fluid velocity, a horsehair comb pulls the color into feathered chevrons, and a floating sheet is lifted to reveal the exact print. The joy is watching liquid ornament become a crisp physical artwork.

LOOK
- Style: sunlit artisan paper marbling, palette bath #D8C9AC, ivory paper #F6F0DF, indigo #214E79, vermilion #C94736, saffron #E3AE36, celadon #639A86, dark walnut #493224, brass #B28B4B.
- Subject: a high-resolution shallow marbling bath with pigment advection (at least 128 x 128 simulation cells), procedural paper-fiber texture, brass stylus and wide 18-tooth comb, and a tilted paper print rising from the bath with the same pigment coordinates.
- FIRST FRAME (t = 0, no input): the bath fills at least 75% of the screen height with six seeded pigment rings already spreading, stylus poised above the surface and a small top-left studio label outside the liquid.

MOTION / PLAY
- Controls: drag inside the bath with mouse or touch to inject a directional velocity stroke; press C or use COMB to sweep the 18-tooth comb horizontally through the bath; press D to drop one pigment drop at the pointer; press P or LIFT to float a sheet onto the bath then lift it at a 35-degree angle. setCamera(panX, panY, zoom) frames the bath.
- Hand-written fluid advection: a damped velocity field with no-slip tray boundary, semi-Lagrangian pigment advection, diffusion and incompressible pressure projection (at least 12 Jacobi iterations per update). Each stroke must move existing pigment, not paint a texture at the cursor.
- Comb mechanics: the moving comb transfers a lateral velocity impulse into the fluid in a row of alternating shear zones. Pigment must preserve its total mass within 5% over 20 s while feather lines grow from the teeth.
- Print mechanics: after 3 s of floating contact, the paper receives the advected pigment, lifts visibly and retains the print as a new cleared bath appears. A wrong early lift leaves a faint incomplete print rather than a full one.
- ATTRACT MODE: with no input, a 28–30 s artisan routine lays drops, draws an S-curve, combs the bath, floats and lifts a paper, and begins a second palette. Any input takes over; after 8 s idle the routine resumes.

SOUND
- Pigment drops make soft water plinks; stylus movement makes a wet directional swish.
- Comb teeth produce a gentle repeated wooden tick as they cross the bath.
- Paper contact gives a soft fiber brush, and the finished lift gives a quiet three-note chime.

COUNTERS
stats() returns { fps, drops, strokes, combSweeps, prints, pigmentMass, contactSeconds }.
- drops: +1 for every actual pigment injection.
- strokes: +1 for a completed directional stylus drag.
- combSweeps: +1 when the comb crosses the bath from edge to edge.
- prints: +1 when the paper visibly lifts with a captured pigment field.
- pigmentMass: integrated pigment density across the bath, clamped to the initial seed mass scale.
- contactSeconds: measured paper-to-bath floating contact time.
- On screen: small studio label with drops, strokes, comb sweeps and prints outside the bath.

CHECKS for ?test=1
With ?test=1, run an accelerated self-test that measures real positions and real events (not self-set flags) and logs "TEST n PASS" or "TEST n FAIL: reason" to the console and to window.__testResults:
1. First frame: bath spans at least 70% of the screen height, pigment occupies at least 8% of bath pixels, and no external resource files are requested.
2. Advection is real: a directional stroke displaces the pigment center of mass by at least 0.08 bath units in the stroke direction while keeping pigment mass within 5% after 20 s.
3. Comb feathering: one edge-to-edge comb sweep creates at least 12 alternating high-curvature ridges and increments combSweeps exactly once.
4. Print fidelity: after 3 s of paper contact, the lifted print matches the bath pigment in at least 90% of sampled colored cells and increments prints exactly once.
5. Attract routine: advancing 30 s produces at least 8 drops, 1 stylus stroke, 1 comb sweep and 1 lifted print, then starts a new bath with zero console errors.

KEEP IT SHORT
- Keep the whole file under about 1,500 lines (soft target) so you can write it in one pass and finish well inside 15 minutes.
- Save lines with helpers, loops and instancing, not by dropping features. Everything above must really work: no placeholders, no TODOs.

BUILD RULES (all required):
- Deliver ONE self-contained HTML file: inline CSS and JS, no build step, no local assets. Libraries only from a CDN. If you use Three.js, use exactly this import map: {"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/"}}
- It must open straight from disk in desktop Chrome and on an iPhone (Safari), fill the full screen, handle resize and touch, and stay smooth (target 60 fps).
- It must look stunning in the very FIRST frame: no black screen, no loading wait, no tiny subject. The main subject fills at least 50% of the screen height.
- SOUND (required): all sound is made in code with Web Audio (no audio files). Show a small "🔊 TAP FOR SOUND" chip; on the first tap create ONE AudioContext, route everything through a master gain of 0.6 into a DynamicsCompressor, and hide the chip. Also expose enableAudio() on the hook object named at the top.
- Expose the hook object named at the top with: setCameraOrbit(azimuthDeg, elevationDeg, distance) (or an equivalent camera setter), advance(seconds) that steps the simulation exactly that much for still captures, enableAudio(), and stats() returning {fps, ...the counters named above}. Use a fixed random seed of 360 so every run is the same.
- Every on-screen counter must count a real event you can see happen. No fake numbers.
- No text overlapping the subject; any label must be readable in a paused frame.
- No brand logos, no real people, no copyrighted characters, brand names or logos.

FAILURE MODES TO AVOID
- A static decorative pattern or cursor-painted texture instead of velocity-driven pigment advection.
- Pigment disappearing through diffusion, exploding into NaNs, or crossing the bath boundary.
- Comb sweep moving only a graphic comb while the fluid remains unchanged.
- Paper print unrelated to the bath, or counters incrementing before visible drops, strokes, combs and lifts.
- Tiny bath with large empty margins or labels covering the marbling.
- The same variable declared twice, or methods called on objects that don't exist yet.

SELF-TEST LOOP
- If you can run code: build the file, open it, read the console, run ?test=1, and take screenshots at 3 s, 10 s and 30 s at 1280x720 and 390x844. Look at the screenshots and fix what looks wrong. Fix and retest until all 5 checks pass with zero console errors. Mark anything you could not run as UNMEASURED; never invent results.
- If you are chat-only: go through this prompt line by line, check your code against each line, and fix anything that would fail. Then write one corrected, complete file.
- Final answer: ONE complete HTML file in ONE code block, then the 5 checks marked PASS, FAIL or UNMEASURED. No snippets, no "rest unchanged".

Built one? Post it on X and tag @wikiwaynePost on X

More Hard prompts

Fourier Scribe

HardCharts & maps
PL-1691 run

Fresnel Beacon

HardMachines
PL-1681 run

Turing Reef

HardGenerative art
PL-1671 run

More Fluids & particles prompts

Bouncing Bubbles

EasyFluids & particles
PL-0644 runs

Chladni Plate

HardFluids & particles
PL-1661 run

Primordial Matrix

HardFluids & particles
PL-1581 run