When I was drawing my field of flowers, I wanted a series of clouds to float lazily across the screen. And since no two clouds are exactly alike, I wanted each cloud to be a little different. But, in the end, I didn’t have time to find a way to create random clouds, and I decided that having the same cloud float across the screen every time was “good enough”.
Well, apparently “good enough” isn’t good enough because my brain has been working on a solution for drawing random clouds… and now I think I have one. While not perfect, most of these clouds look pretty cute.
I create each cloud by combining one rectangle and four circles. The dimensions of the rectangle and the four circles are all calculated from the height of the rectangle, which is 80 pixels in this example. I calculate the width of the rectangle by multiplying the height by a random number between 1.5 and 2.
Rectangle: width: , height: