Skip to main content
100%

Draw circles on canvas

✓ Published0🌍 Public
Aakre54
Last edited Nov 14, 2014
Created on Jul 22, 2014

This canvas animation depicts a field of 2,500 circles, each randomly positioned and colored red or blue, drawn initially to a background canvas. Every 1.5 seconds, a new large circle (radius 80) is added to the foreground and progressively shrinks over time. While shrinking, circles are rendered as thick-outlined strokes; once they reach the minimum radius of 4, they are filled solid and permanently drawn to the background canvas, where they join the original static circles. The foreground canvas is cleared and redrawn every 20 milliseconds, creating a smooth pulsing effect as the shrinking circles fade into the static backdrop. The visualization uses the canvas API and requestAnimationFrame via a custom requestInterval helper for animation.

AI-generated description

Similar vizzes