Search Instagram Twitter Facebook Spotify Grid Tag Date Folder Chat Pencil

Getting started with fractals

Finally started studying fractals, something I’ve been interested in for a very long time. I spent the whole day trying to figure out how create branches recursively, and finally found Daniel Shiffman’s tutorial on fractals. It’s written in Processing, but the main idea is still the same, so I just translated it to cinder code.

The problem I was having was trying to create a “Branch” class which would recursively call itself. As it turns out, all I needed was a recursive function.

Anyway, here’s a screenshot of the first fractal I made.

Source Code

One Comment

  1. Can I use your image of the two 3D Serpinski triangles for my school’s magazine?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.