University of California, Berkeley
EECS Department - Computer Science Division

CS3 Lecture 22 : Fractals


Overview of today's lecture


Project Questions

Review

Input / Output


Fractals, or Self-similar geometric patterns

Overview

Basic Graphics Primitives

Your First Fractal : Sierpinski square

 Base Case, just draw a square Recursive case,  place five sierpinski squares on the diagonals of a 3x3 board

 
 

 
     
     
     

Your Second Fractal : Sierpinski triangle

Binary Tree : "And they tell two friends, and they tell two friends..."

Peano Curve : Space-filling!

Dragon & C-Curve : Two interesting variants!

Koch Curves : Snowflakes and Anti-snowflakes


Summary

Next Time

Puzzle : Tower of Hanoi

Game : Brussels Sprouts