apply_dither_pattern
Fill a rectangular region with a uniform Bayer-dithered blend of two colors, creating a textured mix for pixel art.
Instructions
Fill a rectangle with a uniform Bayer-dithered mix of two colors.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>",
"layer_name": "<layer_name>",
"frame_index": "<frame_index>",
"x": "<x>",
"y": "<y>",
"width": "<width>",
"height": "<height>",
"color_a": "<color_a>",
"color_b": "<color_b>"
},
"name": "apply_dither_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| color_a | Yes | ||
| color_b | Yes | ||
| density | No | ||
| filename | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| create_if_missing | No |