design_create_brush
Add a custom brush definition to a painting:stroke layer's brushes array so it can be referenced by ID in brush_stroke calls.
Instructions
Add a custom brush definition to a painting:stroke layer's brushes array. The brush can then be referenced by its id in brush_stroke calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brush | Yes | BrushDefinition object. Required fields: id, name. Optional: tipType, tipTexture, hardness, roundness, angle, size, sizeMin, opacity, flow, spacing, scatter, scatterAlongPath, dynamics, taperStart, taperEnd, grainScale, grainDepth, grainMode, blendMode, renderMode, smoothing. For texture tips, set tipType to 'texture' and provide tipTexture as a base64-encoded PNG. | |
| layerId | Yes | ID of the painting:stroke layer. |