title: Algorithm for Hue/Saturation Adjustment Layer from Photoshop
body: <p>Does anyone know how adjustment layers work in Photoshop? I need to generate a result image having a source image and HSL values from Hue/Saturation adjustment layer. Conversion to RGB and then multiplication with the source color does not work.</p>
  
  <p>Or is it possible to replace Hue/Saturation Adjustment Layer with normal layers with appropriately set blending modes (Mulitiply, Screen, Hue, Saturation, Color, Luminocity,...)?
  If so then how?</p>
  
  <p>Thanks</p>