
Circle Growth 1
1 year ago
This is a processing sketch I made which fills the screen with growing circles. They stop growing when they touch something.
Also integrated it with ColourLovers' API so the colors you see are pulled from them by keywords, in this case "light spring".
Generation rate is very slow at first to allow a few circles to grow.
Also integrated it with ColourLovers' API so the colors you see are pulled from them by keywords, in this case "light spring".
Generation rate is very slow at first to allow a few circles to grow.
-
Vimeo: About / Blog / Developers / Jobs / Community Guidelines / Community Forums / Help Center / Site Map / Merchandise
/ Get Vimeo

Previous Week
Detecting touches is actually pretty easy. For each circle, you compare it to every other circle on screen. If the distance between centers equals the sum of the radii, they're touching.
Hard part was figuring out where to spawn new circles. It was too expensive to do the same check as above with radii, so it checks to see if a random coordinate's color is the background color, and if so, spawn a circle. No circles can be the exact background color.