Difference between revisions of "Home Is Where The Heart Is Assignment"
Jump to navigation
Jump to search
(→Demo) |
(→Demo) |
||
Line 20: | Line 20: | ||
=Demo= | =Demo= | ||
[https://www.youtube.com/watch?v=mks5Yed9Smg Racket Image Library Demo] | [https://www.youtube.com/watch?v=mks5Yed9Smg Racket Image Library Demo] | ||
+ | |||
+ | [https://www.youtube.com/watch?v=HHqpI059I-8 Making Sense of Dr Racket Error Output] | ||
=Code To Implement= | =Code To Implement= |
Revision as of 04:56, 28 March 2020
Contents
Motivation
Become accustomed to programming in Racket with some warm up activities which provide visual feedback.
We will use the functions provided by the Racket Image Library to draw the pictures below.
Racket Image Library
placement
shapes
Demo
Making Sense of Dr Racket Error Output
Code To Implement
Flags
file: | src/main/racket/home_is_where_the_heart_is/flags.rkt | |
functions: | tri-bar-flag/left-to-right tri-bar-flag/top-to-bottom |
tri-bar-flag/left-to-right
Yes, the function name is literally tri-bar-flag/left-to-right
.
(define (tri-bar-flag/left-to-right width height left-color middle-color right-color) (raise 'not-yet-implemented #t))
tri-bar-flag/top-to-bottom
(define (tri-bar-flag/top-to-bottom width height top-color middle-color bottom-color) (raise 'not-yet-implemented #t))
Home
file: | src/main/racket/home_is_where_the_heart_is/home.rkt | |
functions: | home |
(define (home roof-side-length roof-color base-width base-height base-color door-width door-height door-color) (raise 'not-yet-implemented #t))
Heart
file: | src/main/racket/home_is_where_the_heart_is/heart.rkt | |
functions: | heart |
(define (heart side-length color) (raise 'not-yet-implemented #t))