Re: Transparent fill, opaque stroke
Re: Transparent fill, opaque stroke
- Subject: Re: Transparent fill, opaque stroke
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 22 Oct 2001 11:22:02 -0700
On Monday, October 22, 2001, at 10:19 AM, 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?
Like this, you mean?
NSBezierPath
*myPath = [NSBezierPath bezierPathWithRect:NSMakeRect(10, 10, 100,
100)];
[[NSColor colorWithCalibratedRed:1.0 green:0.0 blue: 1.0 alpha: 0.5]
set];
[myPath fill];
[[NSColor colorWithCalibratedRed: 1.0 green: 0.0 blue: 0.0] set];
[myPath stroke];
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.