diff --git a/collects/teachpack/htdc/Docs/colors.thtml b/collects/teachpack/htdc/Docs/colors.thtml index c96d32f7f3..7a8683db5d 100644 --- a/collects/teachpack/htdc/Docs/colors.thtml +++ b/collects/teachpack/htdc/Docs/colors.thtml @@ -4,9 +4,9 @@ This draw package provides classes for representing colors:
 
-                              +-------+
-                              | Color |
-                              +-------+
+                              +--------+
+                              | AColor |
+                              +--------+
                                   |
                                  / \
                                  ---
@@ -19,7 +19,7 @@ This draw package provides classes for representing colors:
 
 
-

The Color class is abstract. Its variants (subclasses) are +

The AColor class is abstract. Its variants (subclasses) are created with no arguments.

diff --git a/collects/teachpack/htdc/Docs/draw.thtml b/collects/teachpack/htdc/Docs/draw.thtml index f4dbec86df..40d500f771 100644 --- a/collects/teachpack/htdc/Docs/draw.thtml +++ b/collects/teachpack/htdc/Docs/draw.thtml @@ -16,15 +16,15 @@ import geometry.*; | boolean bigBang(int,int,double) | +---------------------------------------+ | boolean endOfTime(String) | | boolean show() | | World endOfWorld(String) | | boolean close() | - | | | boolean drawCircle(Posn,int,Color) | - | | | boolean drawDisk(Posn,int,Color) | - | abstract World onTick() | | boolean drawRect(Posn,int,int,Color) | - | abstract World onKeyEvent(String) | | boolean drawLine(Posn,Posn,Color) | + | | | boolean drawCircle(Posn,int,AColor) | + | | | boolean drawDisk(Posn,int,AColor) | + | abstract World onTick() | | boolean drawRect(Posn,int,int,AColor) | + | abstract World onKeyEvent(String) | | boolean drawLine(Posn,Posn,AColor) | | abstract boolean draw() | | boolean drawString(Posn,String) | - | abstract boolean erase() | | boolean clearCircle(Posn,int,Color) | - +-----------------------------------+ | boolean clearDisk(Posn,int,Color) | - | boolean clearRect(Posn,int,int,Color) | - | boolean clearLine(Posn,Posn,Color) | + | abstract boolean erase() | | boolean clearCircle(Posn,int,AColor) | + +-----------------------------------+ | boolean clearDisk(Posn,int,AColor) | + | boolean clearRect(Posn,int,int,AColor)| + | boolean clearLine(Posn,Posn,AColor) | +---------------------------------------+ @@ -111,7 +111,8 @@ screen's borders. A program can use the following methods on instances of time without calling close before has no effect. -
  • close(), which hides the canvas. If it succeeds, it produces true. +
  • close(), which hides the canvas and erases the current content. +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 @@ -152,7 +153,7 @@ Canvas at p with width w, height h, and color c. The rectangle's lines are parallel to the canvas's borders. If it succeeds, it produces true.

  • -
  • clearLine(Posn p0, Posn p1, Color c), which erases a line from this +
  • clearLine(Posn p0, Posn p1, AColor c), which erases a line from this Canvas from p0 to p1 using color c. If it succeeds, it produces true.
  • diff --git a/collects/teachpack/htdc/Docs/idraw.thtml b/collects/teachpack/htdc/Docs/idraw.thtml index a8bbc1e34a..17e81ef2a6 100644 --- a/collects/teachpack/htdc/Docs/idraw.thtml +++ b/collects/teachpack/htdc/Docs/idraw.thtml @@ -18,15 +18,15 @@ import geometry.*; | void bigBang(int,int,double) | +------------------------------------+ | World endOfTime(String) | | void show() | | World endOfWorld(String) | | void close() | - | abstract void onTick() | | void drawCircle(Posn,int,Color) | - | abstract void onKeyEvent(String)| | void drawDisk(Posn,int,Color) | - | abstract void draw() | | void drawRect(Posn,int,int,Color) | - | abstract void erase() | | void drawLine(Posn,Posn,Color) | + | abstract void onTick() | | void drawCircle(Posn,int,AColor) | + | abstract void onKeyEvent(String)| | void drawDisk(Posn,int,AColor) | + | abstract void draw() | | void drawRect(Posn,int,int,AColor) | + | abstract void erase() | | void drawLine(Posn,Posn,AColor) | +---------------------------------+ | void drawString(Posn,String) | - | void clearCircle(Posn,int,Color) | - | void clearDisk(Posn,int,Color) | - | void clearRect(Posn,int,int,Color) | - | void clearLine(Posn,Posn,Color) | + | void clearCircle(Posn,int,AColor) | + | void clearDisk(Posn,int,AColor) | + | void clearRect(Posn,int,int,AColor)| + | void clearLine(Posn,Posn,AColor) | +------------------------------------+