Difference between revisions of "Snowflake Assignment"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
[https://docs.racket-lang.org/teachpack/2htdpimage.html Racket Image Library Documentation] | [https://docs.racket-lang.org/teachpack/2htdpimage.html Racket Image Library Documentation] | ||
==placement== | ==placement== | ||
− | : [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%2Falign%29%29 beside/align] |
− | : [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29. | + | : [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._flip-vertical%29%29 flip-vertical] |
− | : [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29. | + | : [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._above%2Falign%29%29 above/align] |
+ | : [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._overlay%2Falign%2Foffset%29%29 overlay/align/offset] | ||
: [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._rotate%29%29 rotate] | : [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._rotate%29%29 rotate] | ||
+ | |||
==shapes== | ==shapes== | ||
: [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._triangle%29%29 triangle] | : [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._triangle%29%29 triangle] |
Revision as of 12:09, 9 July 2019
Contents
Racket Image Library
Racket Image Library Documentation
placement
shapes
Snowflake
(define (snowflake len iter is-flipped) (raise (error 'not-yet-implemented))))) (define (snowflake-symmetric len iter) (snowflake len iter #f)) (define (snowflake-flipped len iter) (snowflake len iter #t))
Symmetric
(define (sierpinski-triangle side-length n) (raise 'not-yet-implemented #t))
![]() |
![]() |
![]() |
![]() |
![]() |
n=0 | n=1 | n=2 | n=3 | n=4 |
Flipped
![]() |
![]() |
![]() |
![]() |
![]() |
n=0 | n=1 | n=2 | n=3 | n=4 |
Branch
(define (branch length iter) (raise 'not-yet-implemented #t))
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
iter=0 | iter=1 | iter=2 | iter=3 | iter=4 | iter=5 | iter=6 | iter=7 |