Feedback
- press ENTER to search or ESC to cancel
Table of content
Globals namespaces
Constants
- Align
- AniDir
- BlendMode
- BrushPattern
- BrushType
- ColorMode
- FilterChannels
- FlipType
- Ink
- MouseButton
- MouseCursor
- RangeType
- SelectionMode
- SpriteSheetDataFormat
- SpriteSheetType
- TilemapMode
- TilesetMode
- 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
ReplaceColor
app.command.ReplaceColor {
ui=bool,
channels=FilterChannels...,
from=Color,
to=Color,
tolerance=int
}
ui: Show the dialog on the screen,trueby default. Set tofalsefor automatic replacement without asking to the user for the change. When the dialog is displayed to the user,app.command.ReplaceColor()will return atrueorfalsevalue indicating if the replacement was accepted or cancelled respectively.channels: A combination of FilterChannels with bitwise OR (|) operator. The default value depends on the active sprite color mode:from: Color to replace (it's the foreground color by default)to: Color to replace (it's the background color by default)tolerance: Maximum allowed difference betweenfromand the pixel in the image to apply the replacement.