![]() |
DrawLine | Function (ROM Call 0x1A7) |
graph.h |
void DrawLine (short x0, short y0, short x1, short y1, short Attr); |
Draws a line between two specified points.
DrawLine draws a line from
(x0, y0) to (x1, y1) using
the attribute Attr. The following attributes are supported:
A_NORMAL | Draw a normal line |
A_REVERSE | Draw an inverse line (i.e. erase the line) |
A_XOR | Draw a line using XORing with the destination |
A_THICK1 | Draw a double thick line |
A_SHADE_V | Draw the line using a vertical shading pattern |
A_SHADE_H | Draw the line using a horizontal shading pattern |
A_SHADE_NS | Draw the line using a negative slope diagonal shading pattern |
A_SHADE_PS | Draw the line using a positive slope diagonal shading pattern |