[whatwg] [canvas] inner shadows
cabanier at gmail.com
Fri Nov 23 15:58:40 PST 2012
On Fri, Nov 23, 2012 at 3:47 PM, Glenn Maynard <glenn at zewt.org> wrote:
> On Fri, Sep 21, 2012 at 7:49 PM, Rik Cabanier <cabanier at 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
> Also, the blurred image's alpha is inverted.
You're right. It's not 'clear' for the compositing more, but 'source-out'
More information about the whatwg