Module photon_rs::channels

source ·
Expand description

Channel manipulation.

Functions

Increment or decrement every pixel’s Blue channel by a constant.
Alter a select channel by incrementing or decrementing its value by a constant.
Increment all 3 channels’ values by adding an amt to each channel per pixel.
Increment or decrement every pixel’s Green channel by a constant.
Increment or decrement every pixel’s Red channel by a constant.
Increment/decrement two channels’ values simultaneously by adding an amt to each channel per pixel.
Invert RGB value of an image.
Remove the Blue channel’s influence in an image.
Set a certain channel to zero, thus removing the channel’s influence in the pixels’ final rendered colour.
Remove the Green channel’s influence in an image.
Remove the Red channel’s influence in an image.
Selectively change pixel colours which are similar to the reference colour provided.
Selectively desaturate pixel colours which are similar to the reference colour provided.
Selectively changes a pixel to greyscale if it is not visually similar or close to the colour specified. Only changes the colour of a pixel if its RGB values are within a specified range.
Selectively lighten an image.
Selectively saturate pixel colours which are similar to the reference colour provided.
Increment or decrement every pixel’s Blue channel by a constant.
Alter a select channel by incrementing or decrementing its value by a constant.
Increment all 3 channels’ values by adding an amt to each channel per pixel.
Increment or decrement every pixel’s Green channel by a constant.
Increment or decrement every pixel’s Red channel by a constant.
Increment/decrement two channels’ values simultaneously by adding an amt to each channel per pixel.
Get the similarity of two colours in the lab colour space using the CIE76 formula.
Invert RGB value of an image.
Remove the Blue channel’s influence in an image.
Set a certain channel to zero, thus removing the channel’s influence in the pixels’ final rendered colour.
Remove the Green channel’s influence in an image.
Remove the Red channel’s influence in an image.
Selectively change pixel colours which are similar to the reference colour provided.
Selectively desaturate pixel colours which are similar to the reference colour provided.
Selectively changes a pixel to greyscale if it is not visually similar or close to the colour specified. Only changes the colour of a pixel if its RGB values are within a specified range.
Selective hue rotation.
Selectively lighten an image.
Selectively saturate pixel colours which are similar to the reference colour provided.
Swap two channels.