W3C home > Mailing lists > Public > www-style@w3.org > February 2009

Re: [CSSWG] Minutes and Resolutions 2009-02-04: box-shadow and border-image

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 17 Feb 2009 12:51:02 -0800
Message-ID: <499B2336.5020703@inkedblade.net>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Tab Atkins Jr. wrote:
> Imagine a simple black and white drawing.  We want to spread the black
> areas.  We can do this be tracing the edges of the black areas with a
> brush set to the size we want.  (Obviously browsers won't be doing
> this under the hood, but the effect is equivalent to apply a minimum
> filter.)
> Using euclidean distance is like using a circular brush.  Lines stay
> lines, curves stay curves, but sharp corners (actually it applies to
> things that aren't necessarily 'sharp', just anything with a radius of
> curvature less than your brush) get transformed into a curve.
> Using manhattan distance is like using a square brush.  Lines stay
> lines, curves stay curves, but corners *stay* corners.

Isn't that only true if the corners are horizontal and vertical lines
that intersect at 90deg angles? If I outline a star with a square brush,
the top point looks like this:

                     /      \
                    /        \
                   /    /\    \
                  /    /  \    \

Received on Tuesday, 17 February 2009 20:51:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:26 UTC