move your mouse around and the line will adjust
i might use this as water in some game, by displacing the dots that the line follows based on the impact of something also feel free to use this in your own projects (with credit)