More about Drawing
In Squeak, the programmer can choose between different drawing tools.
It is even possible to use serveral drawing tools to create one drawing
(in very much the same way as you can combine different materials and
techniques to create a painting). The available drawing tools are:
- BitBlt
to draw lines, to fill rectangular areas and to move parts of an image.
Like all drawing tools, BitBlt maintains a clipping rectangle.
- Pen
an enhanced form of BitBlt that adds protocol to move a pen and
to change its state. This is sometimes called "turtle graphics".
- GrafPort
an enhanced BitBlt that offers support for translucent colors and
filled contours
- WarpPort
an enhanced BitBlt that offers support for rotated images
- FormCanvas
a tool that uses a GrafPort for some drawing operations and a BalloonCanvas
for others.
- BalloonCanvas
an enhanced FormCanvas that offers support for antialiasing, for
gradient filling and geometric transformations. BalloonCanvas
is a suitable tool for scalable vector graphics.
BalloonCanvas uses a plugin (encapsulated
in BalloonEngine) for rapid drawing.
All drawing tools draw on a DisplayMedium,
the most typical display media are Form and
DisplayScreen.