Re: CGShading
Re: CGShading
- Subject: Re: CGShading
- From: "R. Scott Thompson" <email@hidden>
- Date: Tue, 12 Oct 2004 20:41:39 -0500
On Oct 12, 2004, at 6:38 PM, John C. Randolph wrote:
I'm pretty sure I can reproduce the effect with three axial shadings,
since each RGB component's value in my original code is a simple
linear function of the pixel's distance from the origin.
My mistake, you're absolutely right. I saw the different colors at
the four corners and thought the code was blending all four smoothly
together. Looking at the code more closely, I see that you are just
using 3 linear gradients meshed together.
If you wanted to have a rectangle with one corner red, one corner blue,
one corner green and one corner black, then blend them all together in
a nice smooth gradient... you can't do that with CGShading yet :-)
(you can do it in PDF using a Coons Patch shading with straight sides).
Scott
--
Macintosh Software Engineering Consulting Services
Visit my resume at <
http://homepage.mac.com/easco/RSTResume.html>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden