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

I very much like using a single recolor() or colorize() function for
monotone, duotone and tritone effects. I do think it's important to support
the use case where all colors are set to a target color (monotone) - as in
the SVG Filter implementation proposed rather than scaled. (The behavior
you propose for 1 color value can be duplicated with a duotone where the
white point is set to white.)

On Thu, May 9, 2019 at 3:54 PM Amelia Bellamy-Royds <
notifications@github.com> wrote:

> Some thoughts:
>
> In general, I'm very supportive of adding color effects beyond sepia() in
> the shorthand function. The sepia-saturate-hue-rotate sequence is painful &
> imprecise, but I've seen it recommended in multiple tutorials and demos. So
> let's make it easier to do better.
>
> Thinking of the use cases, I'd recommend a single recolor() or colorize()
> function that accepts 1 to 3 color values:
>
>    -
>
>    1 color value sets the target value for black pixels in the input.
>    (White pixels stay white, and all other colors get scaled up by the change
>    in the black point.) This addresses the common case of applying a “fill”
>    color to a solid black icon.
>    -
>
>    2 color values set the target black and white points (duotone effect).
>    -
>
>    3 color values set the black, midtone, and white points (tritone
>    effect)
>
> The function could also accept a percentage (or number 0-1) for reducing
> the overall effect (blending with the original colors), equivalent to the
> parameter to the sepia() function.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/fxtf-drafts/issues/334#issuecomment-491095806>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAB325UC773FE2Q37GIUJIDPUSTRNANCNFSM4G37JTIA>
> .
>


-- 
3 things you can do to help fight climate change: Change, Vote, & Advocate (
http://www.timetochoose.com/)


-- 
GitHub Notification of comment by gitmullany
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/334#issuecomment-491102540 using your GitHub account

Received on Thursday, 9 May 2019 23:29:46 UTC