Fractals

About

Sierpinski Trianglee

The Sierpinski Triangle is named after its inventor the Polish mathematician Waclaw Sierpinski (1882-1969). The order-1 Sierpinski Triangle is an equilateral triangle. To create an order-K Sierpinski Triangle, one must draw three Sierpinski Triangles of order K-1, each of which has half the edge length of the original. Those three triangles are positioned in what would be the corners of the larger triangle; together they combine to form the larger triangle itself.

Recursive Tree

Drawn via a recursive function that draws a recursive tree fractal. The tree contains a trunk that is drawn from the bottom center of the applicable area (x, y) through (x + size, y + size). The trunk extends straight up through a distance that is exactly half as many pixels as size.

Technologies & Concepts

  • C++
  • Recursion
  • Fractals
  • Graphics
  • Data structures