University of California, Berkeley
EECS Department - Computer Science Division

OaW CS3L Lecture 13 : Fractals


Project Questions

Review - Advanced Lists


Fractals, or Self-similar geometric patterns

Overview

Basic Graphics Primitives using gdraw.scm

Basic Graphics Primitives using gdraw-helpers.scm

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

Twig : Let's simulate the growth of a small twig

Peano Curve : Space-filling!

Dragon & C-Curve : Two interesting variants!

Koch Curves : Snowflakes and Anti-snowflakes

Animations!!!





Sierpinski Square
Zoom
Implode
C-Curve
Hinge
Bulge
Dragon Curve
Hinge
Bulge
Zoom

Summary

In lab this week

In life this week