W3C home > Mailing lists > Public > www-svg@w3.org > January 2010

Re: Fwd: Question on gradient userSpaceOnUse

From: Dirk Schulze <vbs85@gmx.de>
Date: Tue, 05 Jan 2010 12:22:03 +0100
To: Alex Danilo <alex@abbra.com>
Cc: Jeff Schiller <codedread@gmail.com>, www-svg <www-svg@w3.org>
Message-ID: <1262690523.25524.51.camel@dirk-laptop>
Hi Alex,
> Sorry I don't understand what you are trying to say.
> 
> Yes I agree the transform is applied, and the gradient uses the
> user space of the rect in the example.
> 
> The user space for x1,y1->x2,y2 goes along a diagonal direction,
> not a horiztonal one, so the gradient should be perpendicular to
> that vector.
> 
> Alex

You're right, the vector starts from (x1,y2) and ends on (x2,y2). And
the color on a imaginary orhtogonal line to this vector, should allways
be constant. This is what you mean with "so the gradient should be
perpendicular to that vector".

I mean that the two points should be mapped to the user space coordinat
space of the element that uses the gradient.

I disagree that y2 is unnecessary in some way for userSpaceOnUse, like
you mentioned in your first post. This is part of the second point of
the vector and is neccessary.

Nevertheless Opera doesn't map all coordinates of the gradient to the
coordinate space of the element, but seems to do it for patterns.
Please correct me if I'm wrong.

I hope this is more understandable.

-Dirk
Received on Tuesday, 5 January 2010 11:22:37 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:44 GMT