Points and line segments

This section contains a packet for defining and drawing points and line segments in the R2. It uses straight integer-graphics (see A.7). In order to reduce complexity no clipping is performed. Drawing outside the (hardware-dependent) graphics-screen will result in distorted pictures. The packet should be read by means of the packet-command (p). The Elan Programming Environment can read packets but has no special precompilation facilities.


\begin{elan}
PACKET points and lines
DEFINES POINT, LINE,
point, line, AS, *...
....b.y / aspect))
ENDPROC draw line;
\par
ENDPACKET points and lines;
\end{elan}