fill_layers
Turn colour maps into packed LEGO layers: create stacked brick/plate/tile volumes or upright wall mosaics, skipping occupied cells with staggered seams.
Instructions
Build volume from colour maps, automatically packed into bricks/plates/tiles.
layers: bottom-to-top list of layers; each layer is a list of equal-length rows seen from ABOVE, first row = back, last row = front. Each character is a cell of 1 stud; '.' = empty. legend maps characters to colours, e.g. {"R": "Red", "W": 15}. Each layer is one brick (3 plates) or one plate tall depending on kind; layer i sits at y + i*height. (x, z) is the front-left corner of the map.
upright=True: each layer is instead a front-facing wall picture (first row = top, last row = bottom), one course per row, at depth z + layer index. Handy for mosaics and facades.
Cells already occupied are skipped. Seams are staggered between courses.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| z | No | ||
| kind | No | brick | |
| layers | Yes | ||
| legend | Yes | ||
| upright | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |