Set Hatch Gradient
hatch_set_gradientReplace an existing hatch's pattern with a gradient fill using two RGB colors, with options for gradient type, rotation, centering, and one-color blending.
Instructions
Fill a hatch with a gradient instead of a pattern.
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": {
"handle": "<handle>",
"color1": "<color1>",
"color2": "<color2>"
},
"name": "hatch_set_gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Gradient name: LINEAR, CYLINDER, CURVED, SPHERICAL, HEMISPHERICAL. | LINEAR |
| tint | No | Tint value used with one_color (0-1). | |
| color1 | Yes | Start colour as [r, g, b]. | |
| color2 | Yes | End colour as [r, g, b]. | |
| handle | Yes | Handle of an existing HATCH. | |
| centered | No | 0 = one-sided, 1 = centred. | |
| rotation | No | Gradient angle in degrees. | |
| one_color | No | Blend color1 towards the background instead of color2. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||