apply_dither_gradient
Fill a rectangle with a two-color gradient using Bayer 4x4 ordered dithering, blending colors without introducing new intermediate hues.
Instructions
Fill a rectangle with a two-color gradient using Bayer 4x4 ordered dithering.
This is the classic pixel-art way to blend two colors without introducing new intermediate colors. The gradient runs from color_start (top/left) to color_end (bottom/right).
Args: filename: Aseprite file to modify layer_name: Layer to draw on frame_index: Frame index starting at 1 x: Left edge of the rectangle y: Top edge of the rectangle width: Rectangle width height: Rectangle height color_start: Hex color at the start of the gradient color_end: Hex color at the end of the gradient horizontal: Run the gradient left-to-right instead of top-to-bottom create_if_missing: Create the cel if it does not exist
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_start": "<color_start>",
"color_end": "<color_end>"
},
"name": "apply_dither_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| filename | Yes | ||
| color_end | Yes | ||
| horizontal | No | ||
| layer_name | Yes | ||
| color_start | Yes | ||
| frame_index | Yes | ||
| create_if_missing | No |