Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Fluid Simulation

I took my old sketch and optimized it mostly for performance on Android. Firstly there's a simplified Navier-Stokes-solver (faster, but lacking in correctness) and secondly i have fixed an old interpolation bug. There's no pixel access in P3D on Android yet and that's why i used Quads for particles. Retained mode wasn't usable for me either, but there's a Multitouch implemention: http://cake23.de/android/FluidSimulation.apk The GL version is faster than software rendering for a few particles, but it scales worse. The applet uses a simulation grid of 16x16 cells and 32K pixel-particles.
e.g., mouse, keyboard
e.g., visualization, fractal, mouse
Learn more about Creative Commons
Join Plus+ to change privacy settings
  • FluidSim.pde
  • NavierStokesSolver.pde
This will be the default layout for your sketches
Easy on the eyes
It will show up when there is an error or print() in code
Disabled: Only available on p5js sketches.
Closes parenthesis-like characters automatically as you type

Controls
Play
Ctrl+Enter
Code
Ctrl+Shift+Enter
Save
Ctrl+S
Interface
Fullscreen
Ctrl+Alt+F
Switch Layout
Ctrl+Alt+L
Settings
Ctrl+Alt+.
Editor
Tidy Code
Ctrl+B
Multiple Cursors
Ctrl+Click
Duplicate Line/Selection
Ctrl+Shift+D
Move Line
Alt+↑/↓
Select Multiple
Ctrl+D
Find in Code
Ctrl+F
Find Next
Ctrl+G
Find Previous
Ctrl+Shift+G

See More Shortcuts

Join Plus+ for private sketches, version history, 1GB space, custom embeds, and more!