• 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: maintaining alpha value for intersecting lines?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: maintaining alpha value for intersecting lines?


  • Subject: Re: maintaining alpha value for intersecting lines?
  • From: Koen van der Drift <email@hidden>
  • Date: Thu, 13 Sep 2012 17:56:16 -0400

On Sep 13, 2012, at 1:01 PM, Andy Lee <email@hidden> wrote:

>>
>> Is that possible, since they all have different begin and end points?
>
> Yes. An NSBezierPath can contain multiple unconnected paths.

This did the trick, I created all lines within the same NSBezierPath, and when they overlap, the color remained the same. No need to set any blending or composition modes. Saved me also a lot of creating NSBezierPath instances and drawing them one at a time.

- Koen.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: maintaining alpha value for intersecting lines?
      • From: Graham Cox <email@hidden>
References: 
 >maintaining alpha value for intersecting lines? (From: Koen van der Drift <email@hidden>)
 >Re: maintaining alpha value for intersecting lines? (From: Ken Thomases <email@hidden>)
 >Re: maintaining alpha value for intersecting lines? (From: Koen van der Drift <email@hidden>)
 >Re: maintaining alpha value for intersecting lines? (From: Andy Lee <email@hidden>)

  • Prev by Date: Sandboxing not so bad
  • Next by Date: Re: Sandboxing not so bad
  • Previous by thread: Re: maintaining alpha value for intersecting lines?
  • Next by thread: Re: maintaining alpha value for intersecting lines?
  • Index(es):
    • Date
    • Thread