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
- Grid
- Image
- ImageSpec
- KeyEvent
- Layer
- MouseEvent
- Palette
- Plugin
- Point
- Properties
- Range
- Rectangle
- Selection
- Site
- Size
- Slice
- Sprite
- Tag
- Tile
- Tileset
- Timer
- Tool
- TouchEvent
- Version
- Uuid
- WebSocket
- Window
ColorQuantization
app.command.ColorQuantization {
ui=bool,
withAlpha=bool,
maxColors=int,
useRange=bool,
algorithm=string,
}
Creates a palette from the current sprite
ui
: Shows the dialog on the screen,true
by default.withAlpha
: Create entries with alpha component, defaults totrue
maxColors
: Color amount limit, defaults to256
useRange
: Replace current range, defaults tofalse
algorithm
: One of"default"
,"rgb5a3"
or"octree"
Example
app.command.ColorQuantization {
ui=true,
withAlpha=false,
maxColors=100,
algorithm="octree"
}