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 16:13:28 -0800
Message-ID: <CAGN7qDCfvLTvMOLQsJH+DpVbxyDmQuq_mZ+_7cHYxwdZKj2rNA@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: Dirk Schulze <dschulze@adobe.com>, Tyler Larson <talltyler@gmail.com>, Glenn Maynard <glenn@zewt.org>, "whatwg@whatwg.org" <whatwg@whatwg.org>
On Fri, Nov 23, 2012 at 4:03 PM, Ian Hickson <ian@hixie.ch> wrote:

> On Fri, 23 Nov 2012, Rik Cabanier wrote:
> >
> > It would still be quite complex to draw an inner shadow this way because
> > the blur is calculated on the inverse of the shape.
> > A user will need to draw to another canvas and then 'clear' it to get the
> > inverse.
>
> Turns out it's much easier than that; see my e-mail just now.
>

No. You don't want to see a black shadow with blurred edges.
For an 'inner' shadow, the shadow image sits outside the shape so you have
to calculate that.


>
>
> > > Is this something implementors would be interested in?
> >
> > It seems like this would be easy for them to implement...
>
> That's not really the question. :-)
>
> There's a cost to every feature. We have to prioritise.
>
> --
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
>
Received on Saturday, 24 November 2012 01:31:08 GMT

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