Tutorial problemsTopDocumentation for GraceGrace examples

Grace examples

Here are some simple examples of Grace programs

Here are some examples of Grace programs that use the objectdraw library. Here is the code for some of our library modules:

If your program uses the objectdraw dialect, your program should start with:

   dialect "objectdraw"

To use the animation library, include:

   import "Animation" as anim

The word after "as" in the import can be any legal identifier

The following sample programs need objectdraw. Some also need math.grace and Animation.grace. This will be obvious from their import statements.


Tutorial problemsTopDocumentation for GraceGrace examples