DEV Community

Discussion on: Make it Rain 🌧 in HTML Canvas

Collapse
 
darkain profile image
Vincent Milum Jr

Nice start!

An idea for some advancements: try testing this out on different refresh rate monitors. On my 165Hz display, it starts looking like just curved lines, not "rain" anymore.

I think adding some more random variation to velocities and starting positions can help address this.

Collapse
 
soorajsnblaze333 profile image
Sooraj (PS)

This is a great observation :) Thanks for the heads up. I never knew it would look like curved lines on higher refresh displays. Sure we can just change the environment variables to change the randomness