W3C home > Mailing lists > Public > public-fxtf-archive@w3.org > May 2019

Re: [fxtf-drafts] [filter-effects-2] Add recolor() shorthand (#334)

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Sat, 11 May 2019 20:14:47 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issue_comment.created-491540624-1557605686-sysbot+gh@w3.org>
> But the name recolor() suggests that it works on images that are already coloured. What about having an implicit saturate() as part of recolor()? If not, then perhaps colorize() is the more accurate name.

Saturate increases saturation (multiplies it by a scaling factor). For a grayscale image, the saturation is zero; multiplying it by anything still results in zero. On a hue wheel, all pixels are on the central achromatic axis - there is no hue direction that can be amplified.

I don't have an opinion on `recolor` vs. `colorize` except that the latter implies there is no existing color while the former expresses no opinion regarding any existing colors which are first discarded, then the grayscale image is colorized.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/334#issuecomment-491540624 using your GitHub account
Received on Saturday, 11 May 2019 20:14:49 UTC

This archive was generated by hypermail 2.3.1 : Saturday, 11 May 2019 20:14:50 UTC