All three of the demos below are written in Typescript and make use of the browser’s canvas element. No external libraries are used and each example is made up of around 100 lines of code.

Star

Snow

view source

Rain

view source

Fire

view source

All code is available on github at the below link

https://github.com/BrianDGLS/snes-style-canvas-effects