Difference between revisions of "Recursive Circles Assignment"
Jump to navigation
Jump to search
(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...") |
|||
Line 7: | Line 7: | ||
* [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._beside%29%29 beside] | * [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._beside%29%29 beside] | ||
* [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._above%29%29 above] | * [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._above%29%29 above] | ||
− | |||
− | |||
===shapes=== | ===shapes=== | ||
− | |||
* [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._circle%29%29 circle] | * [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._circle%29%29 circle] | ||
− | |||
− | |||
− | |||
=Shrinking Circles= | =Shrinking Circles= |
Revision as of 06:53, 21 March 2022
Contents
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 | ![]() |
functions: | sierpinski-triangle sierpinski-carpet |
(define (sierpinski-triangle side-length n) (raise 'not-yet-implemented #t))
![]() |
![]() |
![]() |
![]() |
![]() |
n=0 | n=1 | n=2 | n=3 | n=4 |
Outside Circles
file: | src/main/racket/sierpinski_and_cantor/cantor.rkt | ![]() |
functions: | cantor-stool |
Stool
(define (cantor-stool width height n) (raise 'not-yet-implemented #t))
![]() |
![]() |
![]() |
![]() |
![]() |
n=0 | n=1 | n=2 | n=3 | n=4 |