Added SwapChannels node and documentation.

This commit is contained in:
RodZill4 2020-01-21 22:23:25 +01:00
parent 5494950ee3
commit f2d3712743
6 changed files with 39 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -1,7 +1,7 @@
Decompose node Decompose node
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
The **Decompose** node decomposes anRGBA input into four greyscale outputs. The **Decompose** node decomposes an RGBA input into four greyscale outputs.
.. image:: images/node_decompose.png .. image:: images/node_decompose.png
:align: center :align: center

View File

@ -0,0 +1,24 @@
SwapChannels node
~~~~~~~~~~~~~~~~~
The **SwapChannels** node can be used to replace each channel (R, G, B and A) of
an with 0, 1 or a channel of its input (inverted or not).
.. image:: images/node_swapchannel.png
:align: center
Inputs
++++++
The **SwapChannels** node has a single RGBA input.
Outputs
+++++++
The **SwapChannels** node outputs an RGBA image whose channels are defined by its parameters.
Parameters
++++++++++
The **SwapChannels** node has a parameter for each channel that defines its value (0 or 1)
or source (a channel of the input image, inverted or not).

View File

@ -13,6 +13,7 @@ The filter nodes accept one or several inputs and generate one or several images
node_filter_colorize node_filter_colorize
node_filter_combine node_filter_combine
node_filter_decompose node_filter_decompose
node_filter_swapchannels
node_filter_blend node_filter_blend
node_filter_blur node_filter_blur
node_filter_directional_blur node_filter_directional_blur

View File

@ -2251,6 +2251,19 @@
"tree_item": "Filter/Decompose", "tree_item": "Filter/Decompose",
"type": "decompose" "type": "decompose"
}, },
{
"collapsed": true,
"icon": "filter_swapchannels",
"name": "swap_channels",
"parameters": {
"out_a": 8,
"out_b": 6,
"out_g": 4,
"out_r": 2
},
"tree_item": "Filter/SwapChannels",
"type": "swap_channels"
},
{ {
"collapsed": true, "collapsed": true,
"icon": "filter_normal_map", "icon": "filter_normal_map",

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B