Navigation :
AP CS
Artificial Intelligence
Intermediate CS
-
3. Images
-
7. Numbers
-
8. Number Models
-
13. Booleans
-
15. Conditionals
-
20. Using Structures
-- 20. Posn Util
-- 20. Click Circle
-- 20. Click Circle Questions
-- 20. Click Mega
-- 20. Silly Square
-- 20. Tightrope
-- 20. Map Image
-- 20. Color Enhancing
-- 20. Review
-- 20. Intro Quiz
-- 20. Intro Ex 1
-- Troll Quiz Practice
-- Advanced: Aimbooster
-
Sem.I Review
-
21. Structures
-
22a. Recursion
-
22b. Lists
-
Sem.II Review
-
Typed Racket
-
Resources
-
Pro Features
- Online Help
Robotics
WY Robotics
Exploring CS (Teachers)
Resources
20. Intro Quiz
You may use anything from your posn-util.rkt
without comment.
Write is-box?: posn -> boolean
which returns true when the given
point is in the illustrated box.
Write p-circle
.
p-circle: posn(center) posn(edge-pt) image(background)
-> image
Draw a red circle on the given image background. The center of the circle
should be at the posn center
. The
edge-pt
should be on the perimeter or boundary of the circle.