Skip to content

WebGL Fluid Simulation Free Online

Run a free WebGL fluid simulation in your browser. Tap Start, then drag or paint with a finger. Dye moves through a real-time velocity field, curls into eddies, and fades at a rate you control. Nothing downloads and nothing installs.

This browser cannot draw a canvas.
Classic preset of the fluid simulation

Runs in your browser after you tap Start. Nothing to install.

Pick a file from your device. Audio stays in this tab.

How to play

Tap Start on the canvas, then paint. You do not need a manual for a fluid simulation online. These notes help once you want cleaner motion, a specific mood, or a picture worth saving.

  1. Start, then paint with motion

    Tap Start simulation so the WebGL field begins in your tab. Drag on a computer or slide a finger on a phone. Faster strokes push more force into the field. Slow strokes leave softer trails that drift instead of snap.

  2. Pick a preset

    Classic, Water, Fire, Ink, Calm, Smoke, Aurora, and Neon each change fade, swirl, force, and palette together. Open a mode page under Modes when you want a page built around one look, with its own tips and FAQs.

  3. Mirror strokes into fluid art

    Set Mirror to 4-way, 6-way, or 8-way and every stroke repeats around the center like a kaleidoscope. Mirror reflects left and right for symmetric shapes. The kaleidoscope fluid art page opens with 6-way already on.

  4. Let Auto drift paint for you

    Auto drift sends two invisible brushes around the canvas, so the fluid keeps moving without input. It suits a relaxing background or a screensaver in fullscreen. Press A to toggle it, and try it in calm mode.

  5. Tune only if you want

    Quality, brush size, Mirror, and color sit up front for quick changes. Pressure, swirl, fade, bloom, and Paint on hover live under Settings. Each control and keyboard shortcut is mapped in the controls guide.

  6. Capture or share

    Screenshot downloads the current frame as a PNG. Copy link stores your preset and quality in the URL, so sending it to someone opens the same starting point. The simulation itself stays local in your tab the whole time.

  7. Reset when you want a clean field

    Clear wipes the canvas back to empty. Random throws in a burst of color and motion when you want a starting point instead of a blank screen. Both buttons sit in the dock below the canvas.

How this WebGL fluid simulation works

This WebGL fluid simulation solves incompressible flow on your GPU every frame. Velocity lives on a grid 128 cells across the short side of the canvas, and dye lives on a finer grid of up to 1,024 cells, so the motion stays cheap while the color stays sharp. Each frame runs these steps in order:

  1. Add force and dye where your mouse, finger, Auto drift, or music pushes the field.
  2. Measure local spin (curl) and push it back into the flow, which is the Swirl slider.
  3. Measure divergence, the places where the flow would bunch up or thin out.
  4. Solve pressure with 20 Jacobi iterations and subtract its gradient, so the flow stays incompressible.
  5. Carry velocity and dye along the flow (advection), fading each by the Flow fade and Fade speed values.
  6. Draw the dye with optional shading, bloom, and sunrays.

The full explanation, with what each step looks like on screen, is in how WebGL fluid simulation works. The physics behind the steps is in what is fluid simulation.

What the fluid simulation can do

The fluid simulation runs entirely in the browser tab. The table lists each feature, what it does, and its keyboard shortcut.

FeatureWhat it doesShortcut
8 presetsClassic, Water, Fire, Ink, Calm, Smoke, Aurora, and Neon change fade, swirl, force, and palette1 to 8
MirrorRepeats strokes as a reflection or 4, 6, or 8-way kaleidoscopeM
Auto driftPaints the canvas hands free with two wandering brushesA
Paint on hoverPaints with mouse movement alone, no click neededH
ScreenshotSaves a PNG at screen size (at least 1920 px) or 4KS
RecordSaves a video of the canvas, up to 3 minutesR
Music and Live soundMoves the fluid to a song from your device or to your voiceNone
Copy linkShares your preset, quality, Mirror, and Auto drift as a URLNone

Every control is described in the fluid simulation controls guide.

Questions

Tap Start on the canvas. WebGL loads in your tab and the dock appears below it, ready for you to drag or paint with a finger right away.

Yes. Fluidsimulation.net is free to use in the browser. You do not need an account, a download, or a payment to paint.

Yes. Press Auto drift, or A on a keyboard, and two invisible brushes paint the canvas until you turn it off. It works with every preset and with Mirror.

Choose 4-way, 6-way, or 8-way in the Mirror menu, then paint. Every stroke repeats around the center of the canvas. Press M to cycle Mirror options.

Yes. Open the page in a modern mobile browser and paint with one finger. Quality can drop automatically if the device needs the headroom, so motion stays smooth instead of choppy.

No. This is a real-time interactive model built for play and learning. It is not a sign-off tool for engineering design, and it never claims to replace one.

No. The solver runs a 2D dye and velocity field rendered on a flat canvas. That choice keeps the frame rate high enough to paint smoothly on an average laptop or phone.

The simulation runs on your device, inside the tab. Strokes and frames stay local unless you choose to screenshot or copy a share link.

Yes. Press ? on the canvas for the full list. Space pauses, 1 to 8 switch presets, A toggles Auto drift, M cycles Mirror, S saves a screenshot, and F opens fullscreen.