
Circle Growth 1
6 months 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.
This conversation is missing your voice. Take five seconds to join Vimeo or log in.
- Vimeo: About / Blog / Roadmap / Developers / Community Guidelines / Forums / Toys / Help! / Site Map / Get Vimeo Plus
- Legal: ©2009 Vimeo, LLC / Terms & Conditions / Privacy Statement




.
243
2
2
0
0
0
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.