Move your mouse out of the window, the fireflies will randomly move

Move your mouse in the window and the fireflies will follow you

The window can be resized and the fireflies will fit.

View code on Github