• 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: Transparent fill, opaque stroke
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparent fill, opaque stroke


  • Subject: Re: Transparent fill, opaque stroke
  • From: j o a r <email@hidden>
  • Date: Mon, 22 Oct 2001 20:22:52 +0200

On Monday, October 22, 2001, at 07:19 , Ken Tabb wrote:

Me again,

;)

is it possible to draw a closed NSBezierPath such that its outline is
100% black opaque, but its fill (i.e. the inside of the loop) is 50%
transparent?

Have you tried it and it doesn't work?

Something like:

[[NSColor colorWithCalibratedWhite:1.0 alpha:0.5] set];
[myPath fill];
[[NSColor blackColor] set];
[myPath setLineWidth:1.0];
[myPath stroke];

j o a r


  • Follow-Ups:
    • Re: Transparent fill, opaque stroke
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: Transparent fill, opaque stroke
  • Next by Date: Re: Drop location on the Finder?
  • Previous by thread: Re: Transparent fill, opaque stroke
  • Next by thread: Re: Transparent fill, opaque stroke
  • Index(es):
    • Date
    • Thread