app.command.ConvolutionMatrix {
ui=true,
channels=FilterChannels...,
tiledMode=none,
fromResource=string
}
ui
: Shows the dialog on the screen,true
by default. Set tofalse
to apply the convolution matrix filter automatically without asking to the user for the change.channels
: A combination of FilterChannels with bitwise OR (|
) operator. By default it is equal to: FilterChannels.RED | FilterChannels.GREEN | FilterChannels.BLUE | FilterChannels.GRAY.tiledMode
:'none'
,'x'
,'y'
,'both'
. By default it's'none'
if there is no UI, or it's equal toapp.preferences.document(app.activeSprite).tiled.mode
whenui
istrue
.fromResource
: Name of pre-defined convolution matrix.
Note: In future versions this function should support creating customized convolution matrices.