apply_dither_gradient
Fill a rectangle with a two-color gradient using Bayer 4x4 ordered dithering, blending colors without intermediate hues. Supports top-to-bottom or left-to-right direction.
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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes | ||
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| color_start | Yes | ||
| color_end | Yes | ||
| horizontal | No | ||
| create_if_missing | No |