ap_set_brush
Adjust brush parameters—radius, opacity, hardness, scale, angle, and blending—before painting. Omitted settings remain unchanged, so you can update only what matters for the next stroke.
Instructions
Set brush parameters on the painting context. Omitted values are left alone. These are direct context writes, so they take effect immediately for the next stroke.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | Brush angle in degrees. | |
| scale | No | Brush pattern scale. | |
| radius | No | Brush radius (context units, typically 0..2). | |
| opacity | No | Brush opacity 0..1. | |
| blending | No | Blend mode index. | |
| hardness | No | Brush hardness 0..1. |