fill_region
Replace cells in an ASCII grid with a character and colors, using flood fill or global matching.
Instructions
Fill a region with a character and colors. Can be contiguous (flood fill) or global (all matching cells).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Starting X coordinate | |
| y | Yes | Starting Y coordinate | |
| char | Yes | Character to fill with | |
| color | No | Fill color | #FFFFFF |
| bgColor | No | Fill background color | transparent |
| contiguous | No | If true, only fills connected cells. If false, fills all matching cells. | |
| matchChar | No | Only fill cells that match the starting cell character | |
| matchColor | No | Only fill cells that match the starting cell color | |
| matchBgColor | No | Only fill cells that match the starting cell background |