Recursive Circles Assignment

From CSE425S Wiki
Revision as of 06:52, 21 March 2022 by Dennis.cosgrove (talk | contribs) (Created page with "=Motivation= We will recursively generate some images with the [https://docs.racket-lang.org/teachpack/2htdpimage.html Racket Image Library]. =Code To Investigate= ==Racket I...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Motivation

We will recursively generate some images with the Racket Image Library.

Code To Investigate

Racket Image Library

placement

shapes

Shrinking Circles

file: src/main/racket/sierpinski_and_cantor/sierpinski.rkt Racket-logo.svg
functions: sierpinski-triangle
sierpinski-carpet
(define (sierpinski-triangle side-length n)
  (raise 'not-yet-implemented #t))
Shrinking-to-the-right-circles 0.svg Shrinking-to-the-right-circles 1.svg Shrinking-to-the-right-circles 2.svg Shrinking-to-the-right-circles 3.svg Shrinking-to-the-right-circles 4.svg
n=0 n=1 n=2 n=3 n=4

Outside Circles

file: src/main/racket/sierpinski_and_cantor/cantor.rkt Racket-logo.svg
functions: cantor-stool

Stool

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