- Pens, also known as graphics contexts, contain information that
determines how drawing is done.
- If you want to change line width, then instantiate the following pattern:
the pen setLineWidth: new width.
- If you want to change the color with which lines are drawn and text
displayed, then include
ColorConstants in the pool-dictionary
specification of the class, and then instantiate the following pattern,
with a color such as ClrRed.
the pen foreColor: string-naming color.
- If you want to change the font in which strings are displayed, then
instantiate the following pattern:
the pen font: (Font new faceName: string-naming face).
- If you want to draw an open polygon, then instantiate the following pattern:
the pen polygon: an array of points.
- If you want to draw a filled polygon, then include
ColorConstants in the pool-dictionary specification of the class,
and then instantiate the following pattern:
the pen setFillColor: string-naming color.
the pen polygonFilled: an array of points.