In this p5.js artwork, the canvas transforms into a mesmerizing dance of color and motion. The piece begins with a diagonal gradient that gracefully blends two carefully chosen hues, providing a rich, dynamic backdrop. As the animation unfolds, intricate sine wave curves emerge and evolve, their smooth, flowing lines tracing a path across the canvas.
Technical Details: Control Points: 2 to 8, orchestrating the complexity of the wave-like connections within the composition.
Colors: The artwork employs a palette of 164 vivid colors, creating a gradient backdrop and a shifting stroke that evolves in real-time.
Gradient Background: Crafted with precision using lerpColor(), the diagonal gradient seamlessly transitions between two colors, offering a visually compelling foundation.
Path Drawing: The sine wave curves are drawn with curveVertex(), their motion driven by sinusoidal functions. This approach ensures that the curves remain fluid and graceful, each segment animated by a meticulously calculated angle.
Animation: The stroke color dynamically shifts each frame, with subtle variations in the RGB values creating a lively, ever-changing visual effect. The sine waves' movement is driven by incremental angle adjustments, leading to an ever-evolving, captivating display.
This sketch is a vibrant exploration of color and form, where the interplay between gradient backgrounds and animated curves produces an entrancing, fluid dance of light and motion.