Skip to content

Latest commit

 

History

History

module07-fractals-ca

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Fractals and Cellular Automata

Core Material

For each module, I will provide written and video tutorials on the topics. You can review whichever format suits you best. If the amount feels overwhelming, please reach out and we can help you narrow things down, and select a subset of the material to focus an exercise around. It's a lot!

Cellular Automata

Fractals

Code Examples

Reference Research and Artistic Work:

Supplemental Material

For each module, I will provide a list of additional video tutorials and readings that you may draw on for further exploration. It's unlikely you would be able to consume everything in one week and if you are looking for guidance about what might fit with your interests and learning style the most, please reach out.

Assignment

For this week's exercise pick one of the above examples to serve as the foundation of your assignment. It can any of the fractal or CA examples, or a related aglorithm you find through your own research. Create your own version of the algorithm, and iterate variations on the idea by exploring custom visual design elements or rule adjustments. Below is a long list of ideas to explore for CA and Fractals.

CA

  1. Consider Non-rectangular Grids. There’s no particular reason why you should limit yourself to having your cells on a rectangular grid. What happens if you design a CA with another type of shape, e.g. triangle, hexagon, etc.
  2. Probabilistic. The rules of a CA don’t necessarily have to define an exact outcome, for example with the Game of Life, what if a cell as an 80% chance of turning on based on its neighbors.
  3. Continuous. For the examples this week the cell's state can only be a 1 or a 0. What if the cell’s state was a floating point number between 0 and 1?
  4. Image Processing. Many image-processing algorithms operate on CA-like rules. Blurring an image is creating a new pixel out of the average of a neighborhood of pixels. Simulations of ink dispersing on paper or water rippling over an image can be achieved with CA rules. Try implementing a CA where a pixel is a cell and a color is its state.
  5. Historical. What if a cell can track its history: how long it has been a 0 or 1. How might you visualize this. How could it adapt and change its rules over time by learning from its history?
  6. Moving cells. In these basic examples, cells have a fixed position on a grid, but you could build a CA with cells that have no fixed position and instead move about the screen. What CA rules were applied to flocking boids?!
  7. Nesting. Another feature of complex systems is that they can be nested. Our world tends to work this way: a city is a complex system of people, a person is a complex system of organs, an organ is a complex system of cells, and so on and so forth.

Fractals

  1. Stochastic: What if each step of fractal recursion involves some level of randomness. For example, what is each branch of a tree has a random number of sub-branches? What if the angles are random?
  2. Oscillation / Noise: Can you apply oscillating motion or Perlin noise to the properties of a fractal. For example, can a Fractal tree "sway"?
  3. What designs can you create by varying the visual quality of each subsequent generation of fractal recursion? For example with the strokeWeight() for each branch, a tree could have a thick root with subsequently thinner branches.
  4. In what ways could the physics algorithms from modules 1-5 be applied to a fractal shape?

Emoji Key

The following emoji key will hopefully help you navigate the material for each module.

  • 🚂 Video tutorial from Coding Train
  • 🎥 Other video tutorial
  • 📗 Nature of Code book
  • 📕 Other reading
  • 💻 Code examples
  • 🎨 Creative project references