- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Tue, 17 Feb 2009 12:51:02 -0800
- 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: ______ / \ / \ / /\ \ / / \ \ ~fantasai
Received on Tuesday, 17 February 2009 20:51:45 UTC