paint_texture
Paint directly on a texture with absolute pixel coordinates for precise control. Use shapes, lines, gradients, dither patterns, and noise to edit entire sheets.
Instructions
Paint directly on a texture with absolute pixel coordinates. Use this for whole-sheet work; for painting onto a specific cube face, paint_faces (face-relative coords) is usually easier. Ops run in order on the canvas (origin top-left, y down).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | Drawing operations. Each op has a `type` and (where relevant) a `color` (CSS color). Types: pixel{x,y}; rect{x,y,width,height,fill?,line_width?}; line{x1,y1,x2,y2,line_width?}; circle{x,y,radius,fill?,line_width?}; ellipse{x,y,width,height,fill?,line_width?}; polygon{points:[[x,y],...],fill?,line_width?}; gradient{x1,y1,x2,y2,x,y,width,height,stops:[[offset,color],...]}; dither{x,y,width,height,color,color2?,density?} (pixel pattern — stripes/bandages); noise{x,y,width,height,amount?,color?,mono?} (organic fur/skin texture); fill_all{}; clear{x?,y?,width?,height?}. | |
| texture | Yes | uuid or name of the texture to paint. | |
| edit_name | No | Undo entry label. |