(pixels, m)
| 3123 | }); |
| 3124 | } |
| 3125 | var adjust_contrast = function(pixels, m) { |
| 3126 | pixels.map(function(p) { |
| 3127 | return [(p[0]-128)*m + 128, (p[1]-128)*m + 128, (p[2]-128)*m + 128, p[3]]; |
| 3128 | }); |
| 3129 | } |
| 3130 | var o = options || {}; |
| 3131 | if (o.hue !== undefined) |
| 3132 | adjust_hue(pixels, o.hue); |