dancing square paper
A grid of tiles spreads across the screen. Yet, instead of remaining rigid, it wavers like the rippling surface of water, unable to hold its intended form. The movement is smooth, a delicate balance between order and chaos. The secret lies in an invisible wave of numbers.
This code constructs a regular grid of squares, but their vertices are subtly distorted by noise. Noise appears random, yet it follows a smooth, continuous pattern. By applying different noise values to each vertex, the once-stable shape is gently pulled apart, creating a shifting, unstable grid.
As time progresses, the noise values shift, causing the tiles to continuously morph. The variable timeOffset increases gradually, nudging the noise slightly with each frame, producing an ever-flowing animation. If e is modified to sin(timeOffset) * 300, the degree of distortion itself will pulsate, breathing life into the movement and making it even more organic.
A world that was once orderly slowly unravels. This grid is no longer a static pattern; it is a field of endless ripples, a form that never settles, an existence in perpetual flux.