Re: [css-images] gradient midpoints

On Thu, Apr 17, 2014 at 11:23 AM, Rik Cabanier <cabanier@gmail.com> wrote:
>> > The spec also has this wording:
>> >
>> > If multiple stops in a row lack a color, they space themselves out
>> > equally
>> > in "color space", giving more control over the smoothness of the
>> > transition.
>> >
>> > Is this to add multiple midpoints?
>>
>> It has nothing to do with the conception of "midpoints" that you
>> proposed at the f2f.  The current state of the spec (since I haven't
>> yet edited in the f2f resolution) has the behavior of a color stop
>> being symmetrical between missing a position and missing a color -
>> either way, you just fill in the missing values by spacing them out
>> between the surrounding specified values.
>
> ah, I see
> so, if a gradient goes from 0 to 1 and there are 2 stops at 10% and 90%,
> stop 1 would get 33% and stop 2 66%.
> Would there be linear interpolation at that point?

Yes, it didn't do anything special.  It was just a shortcut syntax to
let you equally space colors without explicitly specifying them, same
as the omitted positions.

~TJ

Received on Thursday, 17 April 2014 19:21:04 UTC