Sierpinski Assignment

From CSE425S Wiki
Jump to navigation Jump to search

Racket Image Library

Racket Image Library Documentation

beside
above
overlay overlay/align
triangle
square
rectangle
frame

Sierpiński

Triangle

Sierpiński Triangle

(define (sierpinski-triangle side-length n)
  (raise 'not-yet-implemented #t))
Sierpinski-triangle 0.svg Sierpinski-triangle 1.svg Sierpinski-triangle 2.svg Sierpinski-triangle 3.svg Sierpinski-triangle 4.svg
n=0 n=1 n=2 n=3 n=4

Carpet

(define (sierpinski-carpet side-length n)
  (raise 'not-yet-implemented #t))
Sierpinski-carpet 0.svg Sierpinski-carpet 1.svg Sierpinski-carpet 2.svg Sierpinski-carpet 3.svg Sierpinski-carpet 4.svg.png
n=0 n=1 n=2 n=3 n=4

Cantor

Cantor set

Stool

(define (cantor-stool width height n)
  (raise 'not-yet-implemented #t))
Cantor-stool 0.svg Cantor-stool 1.svg Cantor-stool 2.svg Cantor-stool 3.svg Cantor-stool 4.svg
n=0 n=1 n=2 n=3 n=4