• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CGShading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: CGShading
      • From: "John C. Randolph" <email@hidden>
References: 
 >Re: CGShading (From: "John C. Randolph" <email@hidden>)
 >Re: CGShading (From: "John C. Randolph" <email@hidden>)
 >Re: CGShading (From: "R. Scott Thompson" <email@hidden>)
 >Re: CGShading (From: "John C. Randolph" <email@hidden>)
 >Re: CGShading (From: "R. Scott Thompson" <email@hidden>)
 >Re: CGShading (From: "John C. Randolph" <email@hidden>)
 >Re: CGShading (From: "R. Scott Thompson" <email@hidden>)
 >Re: CGShading (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: New Document Behavior
  • Next by Date: Re: New Document Behavior
  • Previous by thread: Re: CGShading
  • Next by thread: Re: CGShading
  • Index(es):
    • Date
    • Thread