Draw with a tool
aseprite_drawDraw and edit pixels in Aseprite by applying tools such as pencil, shapes, paint bucket, and gradient with configurable brush size, color, layer, and frame.
Instructions
Uses an Aseprite tool like a mouse stroke. line/rectangle/filled_rectangle/ellipse/filled_ellipse take 2 points (start, end; inclusive). pencil/eraser/spray take any number of points (freehand path). paint_bucket takes 1 point. curve takes 4 points. polygon/contour take the corner points.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Brush size | |
| tool | Yes | ||
| color | No | hex color | #000000 |
| frame | No | Frame number, 1-based (default: active frame) | |
| layer | No | Layer name (default: active layer) | |
| points | Yes | List of [x, y] | |
| opacity | No | ||
| brushType | No | circle | |
| tolerance | No | paint_bucket only | |
| contiguous | No | paint_bucket only | |
| pixelPerfect | No | Pixel-perfect freehand for pencil |