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

02Two-source ripple interference field

The distance to each pixel is measured with Math.hypot, then the amplitude of two circular ripples is summed and written via getImageData. Where phases align the result glows bright, where they cancel it leaves dark banding.

Best forPhysics-class interference diagrams, ambient background effects

createImageDataputImageDataMath.hypot
Two-source ripple interference field
Open in a new tab

02 Two-source ripple interference field — Measured area 54.069% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Wave Interference Simulation: 9 Canvas Scenes

The post this demo lives in

Wave Interference Simulation: 9 Canvas Scenes - preview of all 9 demosWave Interference Simulation: 9 Canvas ScenesA wave interference simulation shows what happens on screen when two or more waves combine, and this set builds nine of See all demos in this post

If you like this effect - similar demos