Patterns consist of a 6 byte length followed by a pattern body. The length is the number of bytes contained in this pattern body.
| Pattern Element | Length (bytes) |
| <--Picture File-->\n | 19 |
| length 1 | 6 |
| pattern body 1 | length 1 |
| length 2 | 6 |
| pattern body 2 | length 2 |
| ... | ... |
| Pattern Element | Length (bytes) |
| element type | 1 |
| element number | 2 |
| element body | varies |
| ... | ... |
| Pattern Element | Length (bytes) |
| 0 | 1 |
| element number | 2 |
| size | 2 |
| picture | size |
The format of a picture is described below.
| Pattern Element | Length (bytes) |
| 1 | 1 |
| element number | 2 |
| left element number | 2 |
| right element number | 2 |
| Pattern Element | Length (bytes) |
| 2 | 1 |
| element number | 2 |
| X0 | 8 |
| Y0 | 8 |
| XH | 8 |
| YH | 8 |
| XV | 8 |
| YV | 8 |
| scaled element number | 2 |
| Pattern Element | Length (bytes) |
| 3 | 1 |
| element number | 2 |
| degrees | 2 |
| rotated element number | 2 |
| Pattern Element | Length (bytes) |
| 4 | 1 |
| element number | 2 |
| axis | 1 |
| reflected element number | 2 |
| Type | Value |
|---|---|
| Freehand | 0 |
| Line | 1 |
| Rectangle | 2 |
| Oval | 3 |
| Polygon | 4 |
| Curve | 5 |
| Filled Rectangle | 6 |
| Filled Oval | 7 |
| Filled Polygon | 8 |
| Filled Curve | 9 |
The two byte link is a byte pointer pointing to the start of the picture segment. This link is used to remove segments when the 'Undo' button is clicked.
| Picture Element | Length (bytes) |
| type 1 | 1 |
| segment body 1 | varies |
| link 1 | 2 |
| type 2 | 1 |
| segment body 2 | varies |
| link 2 | 2 |
| ... | ... |
| Picture Element | Length (bytes) |
| no line segments | 2 |
| line size | 2 |
| color | 3 |
| x1 coord | 8 |
| y1 coord | 8 |
| x2 coord | 8 |
| y2 coord | 8 |
| ... | ... |
| Picture Element | Length (bytes) |
| no points | 2 |
| line size | 2 |
| color | 3 |
| x1 coord | 8 |
| y1 coord | 8 |
| x2 coord | 8 |
| y2 coord | 8 |
| ... | ... |
| Picture Element | Length (bytes) |
| line size | 2 |
| color | 3 |
| x1 coord | 8 |
| y1 coord | 8 |
| x2 coord | 8 |
| y2 coord | 8 |
| x3 coord | 8 |
| y3 coord | 8 |
| x4 coord | 8 |
| y4 coord | 8 |
| Picture Element | Length (bytes) |
| line size | 2 |
| color | 3 |
| x1 coord | 8 |
| y1 coord | 8 |
| x2 coord | 8 |
| y2 coord | 8 |
| Picture Element | Length (bytes) |
| line size | 2 |
| color | 3 |
| x coord | 8 |
| y coord | 8 |
| width | 8 |
| height | 8 |