ET++: Pen
ET++ performs all drawing using a "pen," which is closely analogous to real-world pen
in that it determines exactly the shape of the impression left on the Port as it traces its
path (the Ink determines the color of the impression).
Every Port has pen attributes,
shown below, which determine the current position, size, Ink,
and line cap type of the pen.
These instance variables are accessed using straightforward accessor methods.
class Port : public Object {
[ ... ]
Point penpos;
short pensize;
Ink *penink;
GrLineCap pencap;
[ ... ]
}
Back to the graphical layout description
Back to the main ET++ page