Documentation: Hue/Saturation/Lightness

Description

This action allows adjustment of hue, saturation and lightness.

Demo

Hue:
Saturation:
Lightness:

Example usage

var img = new Image();
img.onload = function() {
	Pixastic.process(img, "hsl", {hue:30,saturation:20,lightness:0});
}
document.body.appendChild(img);
img.src = "myimage.jpg";

Parameters

  • hue (int)
    Hue shift, -180 to 180
  • saturation (int)
    Saturation, -100 to 100
  • lightness (int)
    Lightness, -100 to 100

View source: hsl.js

Browser support