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

Re: CGShading line, triangle?


  • Subject: Re: CGShading line, triangle?
  • From: Alex Eddy <email@hidden>
  • Date: Tue, 9 Dec 2003 13:47:51 -0800

On Dec 9, 2003, at 11:04 AM, Alex Eddy wrote:
Ah, this approach seems like it would work, even if it takes three passes. (After writing some code... ) you can get the gradients to align correctly by drawing the gradient from the midpoint of the opposite side of the triangle to your corner plus half the vector of the opposite side. However, there is a crippling problem, see further below.

Whoops, my math was way off-- should be drawing from the midpoint, to the intersection of( the vector perpendicular to the midpoint) and (the vector parallel to the midpoint and a far point, anchored from the close point)
_______________________________________________
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.
References: 
 >Re: CGShading line, triangle? (From: Henry McGilton <email@hidden>)
 >Re: CGShading line, triangle? (From: Alex Eddy <email@hidden>)

  • Prev by Date: Re: NSPasteBoard - Copying contents of NSTextField
  • Next by Date: RE: Xcode style deployment: debug-symbols?
  • Previous by thread: Re: CGShading line, triangle?
  • Next by thread: tiff from NSImage, at 300 dpi
  • Index(es):
    • Date
    • Thread