Difference between revisions of "Cantor Assignment"
Jump to navigation
Jump to search
Line 24: | Line 24: | ||
=Code To Implement= | =Code To Implement= | ||
− | {{RacketToImplement|cantor|cantor-stool| | + | {{RacketToImplement|cantor|cantor-stool|cantor}} |
==Stool== | ==Stool== |
Latest revision as of 20:36, 27 March 2023
Contents
Background
Code To Investigate
placement
shapes
Spacer
; fully transparent rectangle (define (spacer-rect w h) (rectangle w h "outline" (color 0 0 0 0))) ; fully transparent image the size of img (define (spacer-image img) (spacer-rect (image-width img) (image-height img)))
Code To Implement
file: | src/main/racket/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 |
Note: you have been provided with a function which draws a red rectangle outlined in blue.
(define (brick w h) (overlay (rectangle w h "outline" "blue") (rectangle w h "solid" "red") ) )