Re: Fwd: Question on gradient userSpaceOnUse

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 UTC