GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

09Density field rendering

The simulation itself is nothing but a 32x32 array of numbers — how that gets scaled up to screen resolution decides whether the same data reads as blocky pixels or a smooth gradient. Nearest-neighbour and bilinear interpolation sit side by side for comparison.

Best forA comparison demo upscaling low-res computation to high-res display

createImageDataimageSmoothingEnabled
Density field rendering
Open in a new tab

09 Density field rendering — Measured area 54.627% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Canvas Fluid Simulation: 9 Grid Effects

The post this demo lives in

Canvas Fluid Simulation: 9 Grid Effects - preview of all 9 demosCanvas Fluid Simulation: 9 Grid EffectsA canvas fluid simulation doesn't solve the Navier-Stokes equations — it advects, diffuses, and decays density and veloc See all demos in this post

If you like this effect - similar demos