This is just a small example illustrating the Commandant project. It doesn't produce something very interesting by itself.
Type some commands on a line. The program will answer by adding some lines or shapes in the current drawing (a little bit like the LOGO language). Most commands are given by a single letter; you can add spaces if you like.
Here is a list of recognized commands:
| d | Draw a line down. |
| u | Draw a line up. |
| l | Draw a line left. |
| r | draw a line right. |
| o | Draw a circle at current position. |
| O | Draw a filled circle at current position. |
| s | Draw a square at current position. |
| S | Draw a filled square at current position. |
| h | Draw a hexagon at current position. |
| H | Draw a filled hexagon at current position. |
| C(xxx) | Change color; xxx is the name of the new color (blue, red, etc.). |
| C* | Change color,using a random color (possibly transparent). |
| "string" | Plot the string at current position. |
| + | Start a new part of the drawing, which can be removed after that using '!' |
| ! | Remove the last part. |
| !! | Remove all drawings. |
| @ | Open a new graphics window. |