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;
}Properties
brush
ts
brush: BrushToolControls color picking. See BrushTool.
fill
ts
fill: FillToolSwitches between connected and whole-texture fills. See FillTool.
select
ts
select: SelectToolControls rectangle or shape selection and exposes selection transforms. See SelectTool.