a geometric animation that mimics rippling waves.

Channel:
Subscribers:
831
Published on ● Video Link: https://www.youtube.com/watch?v=0J7xC-NpxtA



Duration: 0:00
5 views
0


This code generates a geometric animation that mimics rippling waves.
It first defines unitCount = 8 to determine the number of grid units (unitWidthCount, unitHeightCount). In setup(), it calculates the unit size (unitSize) and adjusts the drawing center using offsets (offsetX, offsetY).

In draw(), the elapsed time (millis()) is used to animate circles and arcs on a white background. The circles are arranged in a staggered pattern, and each contains arcs that resemble ripples. The arcs' rotation angles (angleC) are influenced by time (angleA) and position (angleB), creating a wave-like motion similar to ripples spreading on water. Finally, extra margins are added to maintain a square aspect ratio, ensuring a balanced artistic composition.