W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] [canvas] inner shadows

From: Rik Cabanier <cabanier@gmail.com>
Date: Fri, 23 Nov 2012 15:58:40 -0800
Message-ID: <CAGN7qDDSBkkvroxt+nnjNDSYP2T7Kv0E6bL7PM0UoCg=d=mApQ@mail.gmail.com>
To: Glenn Maynard <glenn@zewt.org>
Cc: Tyler Larson <talltyler@gmail.com>, Ian Hickson <ian@hixie.ch>, whatwg@whatwg.org
On Fri, Nov 23, 2012 at 3:47 PM, Glenn Maynard <glenn@zewt.org> wrote:

> On Fri, Sep 21, 2012 at 7:49 PM, Rik Cabanier <cabanier@gmail.com> wrote:
>
>> With both types of shadow, you take the shape of the element and calculate
>> the blur image.
>>
>> With an outer shadow, you take the result of the blur and composite it.
>> After this, you composite the original shape.
>> With an inner shadow, you draw the shape first followed by the blur image.
>> Importantly, the blur image also needs to clipped by the shape before it
>> is
>> composited.
>>
>
> Also, the blurred image's alpha is inverted.
>
>
You're right. It's not 'clear' for the compositing more, but 'source-out'
Received on Saturday, 24 November 2012 01:28:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT