MonteCarlo PI visualization in typescript.
Link: https://erlingto.github.io/MonteCarloPI/
Each time a coordinate is hit the color its cell gets stronger.
The formula for calculating PI equals 4* number_of_hits_inside_cirle / number_of_hits_inside_square.