Recursively Generated Clouds - Continued
June 5th, 2008
Continuing on from the clouds I had generated earlier, I thought it would be pretty cool if I could get it to move and appear to grow.
Unfortunately, I haven’t been able to make it do that yet. I have however, gotten it to generate random cloud combinations and position them randomly on the canvas with semi-random colours based around reds, yellows and oranges.
It is available online here.
Recursively Generated Clouds
June 5th, 2008
I have been having a look at using recursion in Processing to tile things, however, I got a little bit sidetracked.
Going through the online learning basics, there are two recursion examples, “Recursion” and “Recursion 2“. In the first of these, recursion is used to have a circle repeat itself twice at half the original size inside itself, and continue doing this with each smaller circle until the level is no longer greater than 1. The level is basically the amount of times the function will call itself.
The second of these examples builds on the first, but instead of repeating the circle’s inside themselves, it generates random sizes and shades of circles in semi-random x and y co-ordinates around the main circle until the level is no longer greater than 1. The level again basically being how many times the function calls itself.
Experimenting with these two recursive functions, I combined the two to create a cartoonish cloud that slightly resembles a mushroom cloud which can be found online here.
