Difference between revisions of "Snowflake Assignment"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
==empty-image== | ==empty-image== | ||
: [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._empty-image%29%29 empty-image] | : [https://docs.racket-lang.org/teachpack/2htdpimage.html#%28def._%28%28lib._2htdp%2Fimage..rkt%29._empty-image%29%29 empty-image] | ||
+ | |||
+ | =Demo= | ||
+ | [https://www.youtube.com/embed/AIGeMxka0MQ sprial demo video] | ||
=Code to Implement= | =Code to Implement= |
Revision as of 18:46, 12 April 2020
Contents
Racket Image Library
Racket Image Library Documentation
placement
line
empty-image
Demo
Code to Implement
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))
iter=0 | iter=1 | iter=2 | iter=3 | iter=4 |
Flipped
iter=0 | iter=1 | iter=2 | iter=3 | iter=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 |