W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [css-compositing] "add" and "subtract" blend modes

From: Rik Cabanier <cabanier@gmail.com>
Date: Thu, 23 Aug 2012 11:10:44 -0700
Message-ID: <CAGN7qDC548tgYYp+SDFwwSmdM0yC2TkqEQVDBeLj0wdzdeDvLQ@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Shawn Allen <shawn@stamen.com>, www-style@w3.org
On Thu, Aug 23, 2012 at 11:03 AM, Tab Atkins Jr. <jackalmage@gmail.com>wrote:

> On Thu, Aug 23, 2012 at 10:55 AM, Rik Cabanier <cabanier@gmail.com> wrote:
> > thanks for your feedback!
> > Do you feel strongly that these blend modes should be in the first
> > specification, or do you think they could wait until the next version?
> > Looking at the open source browsers, there is no support under the hood
> for
> > these Photoshop specific blend modes which might slow down
> implementation.
>
> I may be off-base, but the cross-fade() function in Images 4
> <http://dev.w3.org/csswg/css4-images/#cross-fade-function> uses the
> 'add' PD operator.  Is that the same as the linear-dodge blend mode?
> If so, then we have an implementation of it in WebKit.
>
>
That is the 'lighter' compositing mode [1] which adds all the values
(including alpha) of the source and destination.
'Linear dodge' adds the color components and then applies the blending
stages [2]. This will give a more pleasing result.

Rik

1:
https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html#porterduffcompositingoperators_plus

2: https://dvcs.w3.org/hg/FXTF/rawfile/tip/compositing/index.html#blending
Received on Thursday, 23 August 2012 18:11:17 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT