API Reference › Map — tilemap › Map.rect
method

Map.rect

Map.rect(x: tx, y: ty, width: w, height: h, glyph: g)

Writes glyph into every cell of the rectangle; cells outside the map are skipped. A wall slab, a carved corridor, a cleared lane.

Example

# doc-check: skip — illustrative
Map.rect(x: 9, y: 1, width: 2, height: 13, glyph: '.')   # a lane the cover never blocks
← All symbols