diff --git a/collects/teachpack/htdc/Docs/colors.thtml b/collects/teachpack/htdc/Docs/colors.thtml index 7a8683db5d..362622bafe 100644 --- a/collects/teachpack/htdc/Docs/colors.thtml +++ b/collects/teachpack/htdc/Docs/colors.thtml @@ -1,7 +1,15 @@ { (define LIBNAME "A Colors Library (HtDC)") (include "head.tinc") } -This draw package provides classes for representing colors: +

Add +


+  import colors.*
+
+at the top of your Definitions Window to import this library. +

+ + +

This draw package provides classes for representing colors:

 
                               +--------+
@@ -18,6 +26,7 @@ This draw package provides classes for representing colors:
          +-------+  +-------+ +-------+ +-------+ +-------+  +-------+ 
 
 
+

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 34521754d9..636388e850 100644 --- a/collects/teachpack/htdc/Docs/draw.thtml +++ b/collects/teachpack/htdc/Docs/draw.thtml @@ -1,6 +1,14 @@ { (define LIBNAME "A Functional Drawing Library (HtDC)") (include "head.tinc") } +

Add +


+  import draw.*
+
+at the top of your Definitions Window to import this library. +

+ +

This draw package provides classes and methods for a visual world. Here is its class diagram of public fields and methods:

@@ -24,6 +32,7 @@ import geometry.*;
  +-----------------------------------+       +---------------------------------------+
 
 
+

The abstract World class exports the following methods: diff --git a/collects/teachpack/htdc/Docs/geometry.thtml b/collects/teachpack/htdc/Docs/geometry.thtml index 45782b9259..8995ccb86d 100644 --- a/collects/teachpack/htdc/Docs/geometry.thtml +++ b/collects/teachpack/htdc/Docs/geometry.thtml @@ -1,7 +1,14 @@ { (define LIBNAME "A Geometry Library (HtDC)") (include "head.tinc") } -This geometry package provides a class for representing +

Add +


+  import geometry.*
+
+at the top of your Definitions Window to import this library. +

+ +

This geometry package provides a class for representing positions in a Cartesian world:

 
@@ -13,6 +20,7 @@ positions in a Cartesian world:
                       +----------+
 
 
+

To create an instance of the Posn class, a program must supply two int values: one for its x coordinate of the canvas and the diff --git a/collects/teachpack/htdc/Docs/idraw.thtml b/collects/teachpack/htdc/Docs/idraw.thtml index 7a1a148c57..f9d05f4a2d 100644 --- a/collects/teachpack/htdc/Docs/idraw.thtml +++ b/collects/teachpack/htdc/Docs/idraw.thtml @@ -2,7 +2,14 @@ (include "head.tinc") } -This idraw package provides stateful classes and imperative methods +

Add +


+  import idraw.*
+
+at the top of your Definitions Window to import this library. +

+ +

This idraw package provides stateful classes and imperative methods for a visual world. Here is its class diagram of public fields and methods:

@@ -26,6 +33,7 @@ import geometry.*;
                                             +------------------------------------+
 
 
+

The abstract World class in idraw provides the same methods as the World class in the