new ChannelUI(optionsopt) → {ChannelUI}
Create a VisiOmatic dialog for managing the VisiOmatic layer channels.
Parameters
-
options
object
<optional>
Options.
Properties
-
title
string
<optional>
'Channel mixing'Title of the dialog window or panel.
-
color
'grey'
|'jet'
|'cool'
|'hot'
<optional>
'grey'Default color map in
'mono'
mixing mode. -
mixingMode
'mono'
|'color'
<optional>
Mixing mode: single channel (
'mono'
) or color mix ('color'
). Defaults tolayer settings
.
-
title
See
UI
for additional control options.
Returns
-
ChannelUI
Instance of a channel mixing user interface.
Source
Methods
_activateChanElem(trashElem, layer, channel)
Add listener to a channel element for setting the current channel of a given VisiOmatic layer.
Parameters
-
trashElem
object
Trash element.
-
layer
VTileLayer
VisiOmatic layer.
-
channel
number
Image channel.
Source
_activateTrashElem(trashElem, layer, channel)
Add listener to a trash element for blackening the current channel color of a given VisiOmatic layer.
Parameters
-
trashElem
object
Trash element.
-
layer
VTileLayer
VisiOmatic layer.
-
channel
number
Image channel.
Source
_addMinMax(layer, channel, box)
Add a pair of spinboxes for setting the min and max clipping limits of pixel values.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
-
channel
number
Image channel.
-
box
object
The parent box element.
Source
_gotoChannel(layer, channelopt)
Set current channel.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
-
channel
number
<optional>
0Image channel.
Source
_initColorDialog(layer, box)
Initialize the 'color'
flavor of the channel mixing dialog.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
-
box
object
The parent box element.
Source
_initDialog()
Initialize the channel mixing dialog.
Source
_initMonoDialog(layer, box)
Initialize the 'mono'
flavor of the channel mixing dialog.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
-
box
object
The parent box element.
Source
_pauseAnimation(layer)
Pause Animation.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
Source
_playAnimation(layer, {boolean))
Play Animation by iterating over channels/slices.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
-
{boolean)
[reverse=false] Play in reverse?
Source
_updateChannel(layer, channel, {boolean))
Set/update the channel controls for a given channel.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
-
channel
number
Image channel.
-
{boolean)
[updateColor=false] Update Color patch element?
Source
_updateChannelList(layer)
Update the list of channels in the dialog.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
Source
_updateChannelMix(layer, channel, channel_rgb)
Update the color mixing matrix with the RGB contribution of a given channel and redraw the VisiOmatic layer.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
-
channel
number
Image channel.
-
channel_rgb
RGB
RGB color.
Source
_updateColPick(layer, channel)
Update the color picker value based on the given channel color.
Parameters
-
layer
number
VisiOmatic layer.
-
channel
number
Image channel.
Source
loadSettings(layer, settings, mode, keepChannelopt)
Copy channel mixing settings to a VisiOmatic layer.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
-
settings
object
Object where to save the settings properties.
-
mode
'mono'
|'color'
Mixing mode: single channel (
'mono'
) or color mix ('color'
). -
keepChannel
boolean
<optional>
falseOverwrite the current layer channel?
Source
saveSettings(layer, settings, mode)
Copy channel mixing settings from a VisiOmatic layer.
Parameters
-
layer
VTileLayer
VisiOmatic layer.
-
settings
object
Object where to save the settings properties.
-
mode
'mono'
|'color'
Mixing mode: single channel (
'mono'
) or color mix ('color'
).