Code To Investigate
Racket Image Library
Racket Image Library Documentation
placement
- beside
- above
- overlay overlay/align
- rotate
shapes
- triangle
- circle
- square
- rectangle
- frame
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)))
Sierpiński
file: |
src/main/racket/sierpinski_and_cantor/sierpinski.rkt |
![Racket-logo.svg](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Racket-logo.svg/32px-Racket-logo.svg.png) |
functions: |
sierpinski-triangle sierpinski-carpet |
Triangle
Sierpiński Triangle
(define (sierpinski-triangle side-length n)
(raise 'not-yet-implemented #t))
Carpet
(define (sierpinski-carpet side-length n)
(raise 'not-yet-implemented #t))
Cantor
Cantor set
file: |
src/main/racket/sierpinski_and_cantor/cantor.rkt |
![Racket-logo.svg](https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Racket-logo.svg/32px-Racket-logo.svg.png) |
functions: |
cantor-stool |
Stool
(define (cantor-stool width height n)
(raise 'not-yet-implemented #t))