• 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
CGShading line, triangle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CGShading line, triangle?


  • Subject: CGShading line, triangle?
  • From: Alex Eddy <email@hidden>
  • Date: Mon, 8 Dec 2003 18:33:10 -0800

Is there any straightforward way to gradient fill a triangle in Cocoa or CoreGraphics, where each corner has a different color?

For that matter, what about gradient filling a thick line, taking into account the line pattern and end cap style?

It looks like CGShading only supplies linear and radial fills which won't do the triangle case, and it just fills the current clip path, which means to fill a wide line with round end caps I'll have to do all the geometry calculations myself to build the line.

Is it really this un-featured? Is there a clever workaround?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: CGShading line, triangle?
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: insertCell method?
  • Next by Date: Re: NSUserDefaultsController and KVO
  • Previous by thread: insertCell method?
  • Next by thread: Re: CGShading line, triangle?
  • Index(es):
    • Date
    • Thread