Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:layout:start [2025/03/20 20:40] – [Abutment and alignment] ole | tools:layout:start [2025/03/20 20:44] (current) – [Coordinate system] ole | ||
---|---|---|---|
Line 44: | Line 44: | ||
==== Coordinate system ==== | ==== Coordinate system ==== | ||
- | The coordinate system used by rectangles in this file are designed to work directly with '' | + | The internal |
< | < | ||
:box 0 0 10 20 | :box 0 0 10 20 | ||
Line 50: | Line 50: | ||
is of size 10 by 20 units. If we view a box as a collection of 1 by 1 pixels, then this box occupies pixels starting from (0,0) to (9,19). All '' | is of size 10 by 20 units. If we view a box as a collection of 1 by 1 pixels, then this box occupies pixels starting from (0,0) to (9,19). All '' | ||
+ | the rect command is specifed by 2 coordinate pairs, following the above example: | ||
+ | < | ||
+ | rect < | ||
+ | |||
+ | rect # m1 0 0 9 19 | ||
+ | </ | ||
==== Bounding box ==== | ==== Bounding box ==== | ||
Line 68: | Line 74: | ||
The layout engine checks if it can abut 2 cells by looking up if they have a matching label, so next to the abutmentbox you need to specify abutment markers: | The layout engine checks if it can abut 2 cells by looking up if they have a matching label, so next to the abutmentbox you need to specify abutment markers: | ||
+ | these markers are just a single coordinate thus the first coordinate pair is just repeated. | ||
< | < |