Tool
Tool Commands.
Tool commands are for changing the active tool
Command | Value | Description |
---|---|---|
tool-move | Select move tool | |
tool-brush | Select brush tool | |
tool-eraser | Select eraser tool (works only for pixels) | |
tool-paintbucket | Select paintbucket tool | |
tool-paintbucket-threshold | Set color bleed threshold value for paintbucket | |
tool-select | Select selection tool | |
tool-ellipsoid | Select ellipsoid selection tool | |
tool-lasso | Select lasso selection tool | |
tool-polygonlasso | Select polygon lasso selection tool | |
tool-text | Select text tool | |
tool-circle | Select circle vector tool | |
tool-rectangle | Select rectangle vector tool | |
tool-polygon | Select polygon vector tool | |
tool-star | Select star vector tool | |
tool-gingerbread | Select gingerbread vector tool | |
tool-smudge | Select smudge tool | |
tool-adjustmentbrush | Select adjustment brush tool | |
adjustmentbrush-mode | mode | Select adjustment brush mode (default: blur) |
tool-eyedropper | Select eyedropper tool | |
tool-dashedline | Select dashed line tool | |
tool-gradient | Select gradient tool | |
tool-gradient-hue | Set gradient tool hue | |
tool-gradient-saturation | Set gradient tool saturation | |
tool-gradient-light | Set gradient tool lightness |
Adjustment Brush modes
Here are the options you can pass for adjustmentbrush-mode
.
- blur
- sharpness
- darken
- lighten
- colder
- warmer
- desaturate
- saturate
- tint-minus
- tint-plus
Example
// Select adjustment brush tool
command.run("tool-adjustmentbrush")
// Select mode colder (shifts colors from painted area towards blue)
command.run("adjustmentbrush-mode:colder")
// Make the effect less strong than the default value
cmd("brush-pressure:50")