USE TURBOWARP FOR BEST RESULTS: https://turbowarp.org/1306950738?hqpen&fps=60 press space to toggle editor. r to reset. ››› editor mode 1 - drag to change the height of the wave ››› editor mode 2 - drag to change the density of the wave
this is an approximate solution to the wave equation with the verlet method. it describes everything from light to sound to vibrating strings. the simulation goes as fast as it can, irrespective of the actual elapsed time. that is to say, expect it to go super slow or fast if you tweak the constants. the color conveys information about the wave ››› redder color -> higher speed ››› brighter color -> higher density the variables on the top are • DX — minimum horizontal step size (in Scratch pixels) • C — max wave speed (assuming density 1; lower densities will be unstable without higher resolution) • DT — change in time note that in the editor gaussian perfection of the paintbrush was sacrificed for a cleaner user experience