W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: Linear gradients, Transforms and angles...

From: Brad Kemper <brad.kemper@gmail.com>
Date: Mon, 20 Sep 2010 10:56:47 -0700
Cc: "L. David Baron" <dbaron@dbaron.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, www-style list <www-style@w3.org>
Message-Id: <882DB2E5-E320-41A6-9726-C64FC4F43FF0@gmail.com>
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>

On Sep 20, 2010, at 10:15 AM, Daniel Glazman wrote:

> Le 20/09/10 18:21, L. David Baron a écrit :
> 
>> However, there is an argument, which I think I've heard Dean make in
>> the past, that 0° should point along the positive X axis (right) and
>> 90° should point along the positive Y axis (down).  It's a little
>> confusing at first, but it does all fit together sensibly that way.
> 
> I'm fine either way. I only way an angle in a gradient to have the same
> meaning as an angle in rotation.

Why? A rotation is a movement in a circular direction . A linear gradient is a movement in a linear direction. Why should they be the same? When you take a northbound train, you don't expect the direction of travel to be specified in the same way as a merry-go-round. The degree to which you move in a circular direction often has "clockwise" for positive numbers, because clocks are typically round and are familiar for their direction of circular motion. The same is not true of linear motion, where degrees can be any angle but in geometry and maps are most often represented in reference a standard of counterclockwise progression with 90 degrees pointing up and 0 degrees pointing right.


> If we can _also_ be consistent with
> what the mass market software (hear CS) do, wonderful.

If we can _also_ have rotational degrees consistent with common practice for specifying a linear direction as degrees, that might be wonderful, but far less important than adhering to common convention.
Received on Monday, 20 September 2010 17:57:22 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT