Feedback
- press ENTER to search or ESC to cancel
Table of content
Globals namespaces
Constants
- Align
- AniDir
- BlendMode
- BrushPattern
- BrushType
- ColorMode
- FilterChannels
- Ink
- MouseButton
- MouseCursor
- RangeType
- SelectionMode
- SpriteSheetDataFormat
- SpriteSheetType
- WebSocketMessageType
Classes/objects
- Brush
- Cel
- Color
- ColorSpace
- Dialog
- Editor
- Events
- Frame
- GraphicsContext
- Image
- ImageSpec
- KeyEvent
- Layer
- MouseEvent
- Palette
- Plugin
- Point
- Properties
- Range
- Rectangle
- Selection
- Site
- Size
- Slice
- Sprite
- Tag
- Tile
- Tileset
- Timer
- Tool
- TouchEvent
- Version
- WebSocket
- Window
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 Whendithering
isordered
orold
). 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"
}