Dynamic Waves Created With Mouse
Run your mouse through the top line of the blue box to produce water-like waves on the surface. Waves are created using the Drawing API and straight lines. Each line is drawn to an oscillating point maintained within an array that gets updated based on the movement of the points around it. This allows waves to carry through from one side of the surface to the other.
advertisement