Purpose
Opcode format | Opcode
[ASCII] (Hex) |
Operand Format | Comments |
Single-byte, readable operand | [F] (46) | None | Turn Fill Mode ON. |
- | [f] (66) | None | Turn Fill Mode OFF. |
Description
Figure 1. The even-odd rule applied to regions
It is not possible to render both the interior of a region, and a visibly different edge of the region in the same drawing operation. To accomplish this effect, a series of drawing and attribute opcodes must be used. For example, to draw a red triangle with a black outlining edge, you can use the following WHIP! data codes:
FDraw a triangle
P 3 0,0 10,0 5,5Set the color to black
(Color 0,0,0,255)Turn off Fill mode
fFour points specifies three line segments
P 4 0,0 10,0 5,5 0,0Default