Project 1 was pretty simple.
I can put the functions alone to check the result shown.
This way is a good way to check because (check-expect -) just gives me if it is passed or not.
"
(define (set-up-hand im deg)
(overlay/align
"middle" "top"
(rotate (* -1 deg) im)
(circle
(image-height (rotate (* -1 deg) im))
"solid" (make-color 255 255 255 0))))
(set-up-hand apple 90)"
I finished all my stuffs, but the second-hand rotates counter-clock wise.
As I asked my friend, I became to know I should put negative sign in front of rotate degree to make it clockwise
No comments:
Post a Comment