diff --git a/collects/teachpack/htdc/Docs/draw.thtml b/collects/teachpack/htdc/Docs/draw.thtml index 4879c75af0..07064004a0 100644 --- a/collects/teachpack/htdc/Docs/draw.thtml +++ b/collects/teachpack/htdc/Docs/draw.thtml @@ -36,7 +36,7 @@ import geometry.*;
bigBang(width,height,speed)
, which initializes the world,
associates it with a width
x height
Canvas
, displays
-this canvas, and finally starts the clock at a rate of one tick per
+this canvas, enables keyevents, and finally starts the clock at a rate of one tick per
speed
seconds. If it succeeds with all of its actions, the method
produces true
.
@@ -86,11 +86,11 @@ handlers has been called. Its purpose is to present this World
graphically on its canvas. If it succeeds, its result is true.
erase()
, which is invoked after one of the two event
-handlers has been called. Its purpose is to erase this World
's
-canvas, as much as needed. If it succeeds, its result is true.
- Simple erase methods just draw a white rectangle of appropriate width and
- height located at the origin.
+erase()
, which is invoked before one of the two event
+ handlers has been called. Its purpose is to erase this World
's
+ canvas, as much as needed. If it succeeds, its result is true.
+ Simple erase methods just draw a white rectangle of appropriate width and
+ height located at the origin.
Canvas:
show()
, which displays the canvas.
- If it succeeds, it produces true
. Invoking the method a second
- time without calling close
before has no effect.
+
+show()
, which initializes the canvas to a white area,
+ enables the drawing methods, and finally displays the canvas. If it
+ succeeds, it produces true
. Invoking the method a second
+ time without calling close
before has no effect.
close()
, which destroys the canvas.
-If it succeeds, it produces true
. Invoking show
- again, displays an empty canvas of the same size.
+close()
, which hides the canvas. If it succeeds, it produces true
.
+
+Closing the Canvas using the display controls does not fully hide the
+canvas; it is still necessary to invoke close
before
+show
is re-enabled.
drawCircle(p,r,c)
, which draws a circle on this