draw.ss
provides a miniscule collection of
graphics functions:
clear-
operations for each
draw-
operation. The arguments are the same.
Sample session: Set teachpack to draw.ss
and execute:
> (start 500 500)
> (draw-solid-disk (make-posn 100 100) 3 RED)
true
> (clear-solid-disk (make-posn 100 100) 3 RED)
true
> (sleep-for-a-while 1)
> (draw-solid-disk (make-posn 100 100) 3 RED)
true
> (clear-solid-disk (make-posn 100 100) 3)
true
> (stop)
>
This session opens a window, draws a red disk, clears it, sleeps for a second,
and then repeats. The last expression closes the canvas.