multiply filter for PImage?
in
Programming Questions
•
1 years ago
tint() appears to be additive -- regardless of colorMode(), the parameters to tint() are always added to each pixel.
is there a multiplicative version of tint()? i ask because i'd like to desaturate an image. i can make a copy of the PImage, desaturate it completely with filter(GRAY), and then blend() the two. but it seems like that process could be simpler.
e.g. as3's ColorTransform class has both a multiplier and an 'offset' for each channel; the offsets correspond to the params to tint().
but as far as i can tell there's no equivalent in processing for the multipliers.
maybe there's an obvious answer, but i'm not finding it...help?
1