ChangePixelFormat

app.command.ChangePixelFormat {
  format=string,
  dithering=string,
  ["dithering-matrix"]=string,
  rgbmap=string,
  toGray=string
}

Changes the ColorMode of the active sprite

  • format: Can be "rgb", "gray", or "indexed".
  • dithering: Can be "ordered", "old" "error-diffusion", or empty.
  • dithering-matrix: It can be "bayer8x8", "bayer4x4", or "bayer2x2" (when When dithering is ordered or old). Actually it can be a matrix ID from any extensions (for example).
  • rgmap: "octree", "rgb5a3", or "default" (generally default will be octree, but it might change in the future). If nothing is specified the default configured quantization method from prefereces will be used if the GUI is enabled.
  • toGray: "luma", "hsv", or "hsl".

Example

app.command.ChangePixelFormat {
  format="indexed"
}