This project is the culmination of the work I have done with adding borders to elements. There are lots of random ways borders can be added to rectangles and circles now. I also added eight new color schemes, to provide even more variety to the potential design as it is created and pulled apart. The use of break points to provide additional probablilities as the program runs through iterations gives even more room for different designs, within the look of the whole thing.
The main createBox function builds up the screen, adding rectangles and circles, which may or may not have borders, letters and words. When it starts it comes up with a percentage probablity of adding each of these. Finally, at a random point, it goes into a fade out mode, where it removes a random number of elements from the design. Once that process has finished, the probablilities and color scheme are reset, and it starts building elements again.
Code Snippets for 18
This adds an additional circle to the mix, one that has a border going all the way around it. Now there are three types of circles: solid, half, and circles with rings.
These two functions take breakpoints for adding rectangles and circles to the window, setting a probability for each type which stays constant, until the fade out process is complete. At that point a new set of breakpoints and probabilities are created.
You can see that this function has been simplified to add one of four things each time it runs: a box, a circle, a letter or a word. If a box is chosen, then there is some probability that it will add a plain box, or a border box. If a border box is added, there are three different versions of those. If a circle is added, probabilities are set up for the three different types of circles.
When the fadeout mode finishes, which is a random number of times, a new color scheme could be chosen, then the breakpoints are reset for everything, and then createBox is started again with these new settings.
I also doubled the color schemes in this version. The first set of eight color schemes were all pretty closely related. I tried to add two sets of four that are related to themselves, but different from the original eight and the other set of four.