CPSC 110 Lecture Notes - Lecture 5: Radius
ferrari12 and 39375 others unlocked
23
CPSC 110 Full Course Notes
Verified Note
23 documents
Document Summary
;; spider is number (not exactly correct because you want a whole number not a decimal pixel. ;; spider is integer ; in case spider is above the screen, negative. ;; interp. y position of spider in screen coordinates. By the time you get around calling (main 1), main and everything else it calls is already there. Check-expect can gather them all until it gets to the end and then it does them. Min is a function that takes 2 numbers and produces the smaller of the two. ; design a world program in which a spider starts at the top of the screen. The spider should stop when it reaches the bottom. ; you can improve your spider by re-running the htdw recipe to add these features. ; - draw a line from the top of the screen to the spider, this is the thread. You will need to use add-line for this.