Difference between revisions of "Snowflake Assignment"
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
{| class="wikitable" style="text-align: center; " | {| class="wikitable" style="text-align: center; " | ||
|[[File:Snowflake-symmetric_0.svg]] | |[[File:Snowflake-symmetric_0.svg]] | ||
− | |[[File:Snowflake-symmetric_1.svg | + | |[[File:Snowflake-symmetric_1.svg]] |
− | |[[File:Snowflake-symmetric_2.svg | + | |[[File:Snowflake-symmetric_2.svg]] |
− | |[[File:Snowflake-symmetric_3.svg | + | |[[File:Snowflake-symmetric_3.svg]] |
− | |[[File:Snowflake-symmetric_4.svg | + | |[[File:Snowflake-symmetric_4.svg]] |
|- | |- | ||
|n=0 | |n=0 | ||
Line 49: | Line 49: | ||
{| class="wikitable" style="text-align: center; " | {| class="wikitable" style="text-align: center; " | ||
|[[File:Snowflake-flipped_0.svg]] | |[[File:Snowflake-flipped_0.svg]] | ||
− | |[[File:Snowflake-flipped_1.svg | + | |[[File:Snowflake-flipped_1.svg]] |
− | |[[File:Snowflake-flipped_2.svg | + | |[[File:Snowflake-flipped_2.svg]] |
− | |[[File:Snowflake-flipped_3.svg | + | |[[File:Snowflake-flipped_3.svg]] |
− | |[[File:Snowflake-flipped_4.svg | + | |[[File:Snowflake-flipped_4.svg]] |
|- | |- | ||
|n=0 | |n=0 | ||
Line 66: | Line 66: | ||
{| class="wikitable" style="text-align: center; " | {| class="wikitable" style="text-align: center; " | ||
− | | | + | |[[File:Branch_0.svg]] |
− | |[[File:Branch_1.svg | + | |[[File:Branch_1.svg]] |
− | |[[File:Branch_2.svg | + | |[[File:Branch_2.svg]] |
− | |[[File:Branch_3.svg | + | |[[File:Branch_3.svg]] |
− | |[[File:Branch_4.svg | + | |[[File:Branch_4.svg]] |
− | |[[File:Branch_5.svg | + | |[[File:Branch_5.svg]] |
− | |[[File:Branch_6.svg | + | |[[File:Branch_6.svg]] |
− | |[[File:Branch_7.svg | + | |[[File:Branch_7.svg]] |
|- | |- | ||
|iter=0 | |iter=0 |
Revision as of 12:41, 9 July 2019
Contents
Racket Image Library
Racket Image Library Documentation
placement
line
empty-image
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))
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 |