Re: bug in NSGradient?
Re: bug in NSGradient?
- Subject: Re: bug in NSGradient?
- From: "Stephen J. Butler" <email@hidden>
- Date: Sat, 22 Nov 2008 13:29:03 -0600
On Sat, Nov 22, 2008 at 4:12 AM, Graham Cox <email@hidden> wrote:
> Just noticed this, not what I was expecting. I'll file a bug unless someone
> can convincingly explain it's correct behaviour...
>
> [NSGradient interpolatedColorAtLocation:<value>];
[snip]
> For the case above this depends on whether the gradient will be drawn with
> the colour extending flags set, but since this method doesn't know about
> those flags, it's not well-defined. I would suggest that the method should
> assume the flags are set, since that's a useful assumption, whereas the
> opposite isn't.
Well, from a terminology point of view, nil is the right answer. You
can't "interpolate" beyond the end points. That's "extrapolation".
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden