Advertisement
pleabargain

How to Design Programs, Second Ed exe7boat

May 31st, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. ;Exercise 7: Use the picture primitives to create the image of a simple boat.
  2. ;http://www.ccs.neu.edu/home/matthias/HtDP2e/part_one.html#%28part._sec~3aarith-num%29
  3.  
  4. (overlay/offset (overlay/offset (rectangle 100 15 "solid" "red"); the red rectangle length width
  5. 0 -30 ; moves the triangle around
  6. (triangle 60 "solid" "tan"))
  7. 0 70 ;and the auto formatting of drracket is just plain ugly
  8. (rectangle 200 200 "solid" "blue"))
  9. ;pathetic, really
  10. ;spent way too much time on this piece of crap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement