Hue Saturation Adjust - brianchirls/Seriously.js GitHub Wiki

seriously.hue-saturation.js

Adjust the hue and saturation of the source image.

Parameters

  • source (image) - image to be processed
  • hue (number) - amount to rotate hue. 1 represents a full 360 degree rotation.
    • min: 0
    • max: 1
    • default: 0.4
  • saturation (number) - positive or negative adjustment of saturation. 0 is no adjustment, -1 is full color removal, and 1 raises colors to maximum saturation
    • min: -1
    • max: 1
    • default: 0

Credits and License

By Brian Chirls

Released under MIT License along with Seriously.js