Re: Transparent fill, opaque stroke
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