Circles

 

programs

processing

instructions

This code creates an artistic circle design. Click Enter to create a new unique design.

description

Using a series of commands and rules, this code creates a unique pattern and design following basic principles. Each circle is drawn and assigned a random color. When drawing the circle it is to be created without every intersecting another. Either the circle is entirely outside or completely enclosed in another circle.

 

When I set out to create this creative code, I wanted to focus on creating a generated using various predetermined rules. These rules would focus on various visual guidelines. The rules were as follows:

  1. No shapes will Intersect with another shape.

  2. Shapes will all be different Sizes and Colors.

  3. Each Shape will be a different color.

  4. Only can you a single Shape.

Using these rules I started coding. My first goal was to pick the shape I wanted to use and decided to go with a circle. The reason for the circle was that no matter the direction, the distance from the center to the edge would be exactly the same. It would make calculations easier and more uniform. 

Once I determined the shape, I went one by one using a random function for the circles X and Y location. Once that was done, I had to test the radius of each circle against all the other circles that were drawn, and readjust the radius accordingly.

Circles_code.jpg

From the code, this was the final result.

An algorithm that generates a variety of Ellipses, where none of the ellipses will intersect. The Circles will either touch or be fully incased by another circle. but never intersect

As for achieving my goals, I think I achieved 3.5/4

The only one that I have achieved was “No shapes will Intersect with another shape”, Technically speaking, none of the shapes intersect, but with my current model, circles are fully enclosed by another circle. If I were to approach this project again, I would try to adjust the code so that circles are not fully enclosed and are truly not intersecting with any other circles.

 

link to sketch on open processing website

www.openprocessing.org/sketch/1009006

Next
Next

Geometric