Skip to content

Toolset ​

Provides the runtime controls for drawing tools owned by PixelArtCanvas. The canvas exposes it as canvas.tools.

ts
canvas.tools.brush.pickArmed = true;
canvas.tools.fill.global = true;
canvas.tools.select.shape = true;

Colors, opacity and brush size are configured through canvas.brush. UV regions are managed through canvas.uv.

Types ​

ts
interface Toolset {
  brush: BrushTool;
  fill: FillTool;
  select: SelectTool;
  uv: UVTool;
}

Properties ​

brush ​

ts
brush: BrushTool

Controls color picking. See BrushTool.

fill ​

ts
fill: FillTool

Switches between connected and whole-texture fills. See FillTool.

select ​

ts
select: SelectTool

Controls rectangle or shape selection and exposes selection transforms. See SelectTool.

uv ​

ts
uv: UVTool

Turns UV resize handles on or off. See UVTool.