fix bug in saturation function

Fixes lmccart/processing-js#49