Re: [css3-images] Gradient Magic

On Mon, Jul 18, 2011 at 2:55 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
> Well, the way I thought of it was to stretch a square to determine the
> length, angle, and placement of the gradient path. But still place the color
> stops along the final path within the final rectangle. What Behnam made me
> think though is that the final angle shouldn't be based on the path of the
> two gradient endpoints (45deg to connect two corners), but rather on a path
> perpendicular to the OTHER two endpoints. Once you resolve what the final
> used angle should be in degrees, you just treat it like those degrees were
> specified by the author.

I think that's very difficult to visualize or think about, and it
would be unimaginably simpler to just draw the gradient into a square
and then stretch it, exactly as if you were using objectBoundingBox
units.

~TJ

Received on Monday, 18 July 2011 22:09:14 UTC