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
ReplaceColor
app.command.ReplaceColor {
ui=true,
channels=FilterChannels...,
from=Color,
to=Color,
tolerance=0
}
ui
: Show the dialog on the screen,true
by default. Set tofalse
for automatic replacement without asking to the user for the change. When the dialog is displayed to the user,app.command.ReplaceColor()
will return atrue
orfalse
value indicating if the replacement was accepeted 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 betweenfrom
and the pixel in the image to apply the replacement.