Re: Banding/smoothing problem with drawing angled gradients.

2009-03-20 Thread Graham Cox
On 20/03/2009, at 2:57 PM, Phi Le wrote: Hello, I want to draw angled gradients with multiple sharp transitions using NSGradient. I am not getting very smooth transitions between the colors. Please take a look at my attachment to see the problem. Are there solutions without having to use NSS

Re: Banding/smoothing problem with drawing angled gradients.

2009-03-19 Thread Andrew Farmer
On 19 Mar 09, at 21:41, mm w wrote: seriously you should think to use a GLView, As NSGradient is unusable in OpenGL contexts, I'm not sure what this is supposed to solve. you also have to think to lock your context... The drawing context is set up and locked by AppKit before it calls d

Re: Banding/smoothing problem with drawing angled gradients.

2009-03-19 Thread mm w
seriously you should think to use a GLView, you also have to think to lock your context... 2009/3/19 Phi Le : > Hello, > > I want to draw angled gradients with multiple sharp transitions using > NSGradient. I am not getting very smooth transitions between the > colors. Please take a look at my at

Re: Banding/smoothing problem with drawing angled gradients.

2009-03-19 Thread Kyle Sluder
You asked this question two days ago; if anyone knows, they'll offer to help you. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-