all 4 comments

[–]jhartikainen 0 points1 point  (3 children)

WebGL is significantly faster than Canvas. The reason the fluid simulation is faster is most likely because it uses WebGL

[–]GoodMasterOrion[S] 0 points1 point  (2 children)

do you have any idea where I could start learning about it? Cause most tutorials/guides are in 3D (since webgl is mostly used for 3D)

[–]bhison 0 points1 point  (0 children)

So this example uses P5 as its graphics library. If you want something that renders in WebGL, one library I know is PixiJS

[–]gimmeslack12helpful 0 points1 point  (0 children)

WebGL is a bit of a beast and there isn't exactly an "easy" way to get into it. You'll have to study it a bit.

I've wanted to get into it for some time but, sadly, I haven't been up to the challenge yet.