Expand description
Image manipulation effects in HSL, HSLuv, LCh and HSV.
Functions§
- Darken the image by a specified amount in the HSL colour space.
- Darken the image by a specified amount in the HSLuv colour space.
- Darken the image’s colours by a specified amount in the HSV colour space.
- Darken the image by a specified amount in the LCh colour space.
- Desaturate the image by a specified amount in the HSL colour space.
- Desaturate the image by a specified amount in the HSLuv colour space.
- Desaturate the image by a specified amount in the HSV colour space.
- Desaturate the image by a specified amount in the LCh colour space.
- Applies gamma correction to an image.
- Image manipulation effects in the HSL colour space.
- Image manipulation effects in the HSLuv colour space
- Image manipulation in the HSV colour space.
- Shift hue by a specified number of degrees in the HSL colour space.
- Shift hue by a specified number of degrees in the HSLuv colour space.
- Shift hue by a specified number of degrees in the HSV colour space.
- Shift hue by a specified number of degrees in the LCh colour space.
- Image manipulation effects in the LCh colour space
- Lighten an image by a specified amount in the HSL colour space.
- Lighten an image by a specified amount in the HSLuv colour space.
- Lighten an image by a specified amount in the HSV colour space.
- Lighten an image by a specified amount in the LCh colour space.
- Mix image with a single color, supporting passing
opacity
. The algorithm comes from Jimp. Seefunction mix
andfunction colorFn
at following link: https://github.com/oliver-moran/jimp/blob/29679faa597228ff2f20d34c5758e4d2257065a3/packages/plugin-color/src/index.js Specifically, result_value = (mix_color_value - origin_value) * opacity + origin_value = mix_color_value * opacity + (1 - opacity) * origin_value for each of RGB channel. - Increase the image’s saturation by converting each pixel’s colour to the HSL colour space and increasing the colour’s saturation.
- Increase the image’s saturation in the HSLuv colour space.
- Increase the image’s saturation in the HSV colour space.
- Increase the image’s saturation in the LCh colour space.
- Darken the image by a specified amount in the HSL colour space.
- Darken the image by a specified amount in the HSLuv colour space.
- Darken the image’s colours by a specified amount in the HSV colour space.
- Darken the image by a specified amount in the LCh colour space.
- Desaturate the image by a specified amount in the HSL colour space.
- Desaturate the image by a specified amount in the HSLuv colour space.
- Desaturate the image by a specified amount in the HSV colour space.
- Desaturate the image by a specified amount in the LCh colour space.
- Applies gamma correction to an image.
- Image manipulation effects in the HSL colour space.
- Image manipulation effects in the HSLuv colour space
- Image manipulation in the HSV colour space.
- Shift hue by a specified number of degrees in the HSL colour space.
- Shift hue by a specified number of degrees in the HSLuv colour space.
- Shift hue by a specified number of degrees in the HSV colour space.
- Shift hue by a specified number of degrees in the LCh colour space.
- Image manipulation effects in the LCh colour space
- Lighten an image by a specified amount in the HSL colour space.
- Lighten an image by a specified amount in the HSLuv colour space.
- Lighten an image by a specified amount in the HSV colour space.
- Lighten an image by a specified amount in the LCh colour space.
- Mix image with a single color, supporting passing
opacity
. The algorithm comes from Jimp. Seefunction mix
andfunction colorFn
at following link: https://github.com/oliver-moran/jimp/blob/29679faa597228ff2f20d34c5758e4d2257065a3/packages/plugin-color/src/index.js Specifically, result_value = (mix_color_value - origin_value) * opacity + origin_value = mix_color_value * opacity + (1 - opacity) * origin_value for each of RGB channel. - Increase the image’s saturation by converting each pixel’s colour to the HSL colour space and increasing the colour’s saturation.
- Increase the image’s saturation in the HSLuv colour space.
- Increase the image’s saturation in the HSV colour space.
- Increase the image’s saturation in the LCh colour space.