Today, I wanted to play around with generating some art using the ‘spawn’ method. It’s something I’ve seen a few times and finally decided to give it a shot myself. So, I started by, you know, just messing around.
First, I needed a starting point. I thought, “Okay, what’s a simple shape?” I went with a circle. Nothing fancy, just a plain old circle drawn on the screen.
Then came the fun part – the spawning! The basic idea is to take that initial circle and repeatedly create new circles based on it. I set up a loop to do this. In each loop, I copied the original circle and made some changes.
- I shifted the position a little bit. Just a random nudge in different directions.
- I changed the size, making some bigger and some smaller, again randomly.
- And finally, I tweaked the color, adding a bit of random variation to the hue and saturation.
I ran this loop, like, a hundred times, and boom! I had a bunch of circles all over the place, but they were all related to that first circle I drew. It was kind of messy, but it had potential.
Next, I wanted to make it more interesting. So, instead of just creating new circles directly from the original, I started creating them from the newly spawned circles. This created a sort of chain reaction. A circle would spawn another, which would spawn another, and so on.
To keep things from getting out of control, I added a little bit of “decay”. With each generation, the spawned circles got a little smaller and a little more transparent. This way, they would eventually fade away, preventing the screen from filling up completely.
After some more tweaking and playing with the random values, I finally got something I liked. It was this cool, organic-looking pattern that seemed to grow and evolve on its own. It’s not exactly high art, but it was fun to make, and it really showed the power of this simple spawning technique.
It totally shows how you could start with something so simple and end up with a complex piece by just adding some repetition and randomness.