Tool

Tool Commands.

Tool commands are for changing the active tool

CommandValueDescription
tool-moveSelect move tool
tool-brushSelect brush tool
tool-eraserSelect eraser tool (works only for pixels)
tool-paintbucketSelect paintbucket tool
tool-paintbucket-thresholdSet color bleed threshold value for paintbucket
tool-selectSelect selection tool
tool-ellipsoidSelect ellipsoid selection tool
tool-lassoSelect lasso selection tool
tool-polygonlassoSelect polygon lasso selection tool
tool-textSelect text tool
tool-circle Select circle vector tool
tool-rectangleSelect rectangle vector tool
tool-polygonSelect polygon vector tool
tool-starSelect star vector tool
tool-gingerbreadSelect gingerbread vector tool
tool-smudgeSelect smudge tool
tool-adjustmentbrushSelect adjustment brush tool
adjustmentbrush-modemodeSelect adjustment brush mode (default: blur)
tool-eyedropperSelect eyedropper tool
tool-dashedlineSelect dashed line tool
tool-gradientSelect gradient tool
tool-gradient-hueSet gradient tool hue
tool-gradient-saturationSet gradient tool saturation
tool-gradient-lightSet 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")