Re: NSBezierPath with Transparent color stroke
Re: NSBezierPath with Transparent color stroke
- Subject: Re: NSBezierPath with Transparent color stroke
- From: Gordon Apple <email@hidden>
- Date: Mon, 20 Oct 2014 11:52:53 -0500
- Thread-topic: NSBezierPath with Transparent color stroke
Reminds me when I racked my brain trying to figure out how OmniGraffle drew
parallel border lines on Beziers. I tried inset/outset, etc, then slapped my
forehead when I realized that they just stroked it with a wide line, then
again with a narrow line using the background color. Duh!
On 10/20/14 11:26 AM, "email@hidden"
<email@hidden> wrote:
>
> On Oct 20, 2014, at 06:50 , Leonardo <email@hidden> wrote: > > I
> really need to fill the rect with flat red and stroke it with a 10 >
> points-width 50% transparent gray border. What does that mean? Are you trying
> to fill the entire rect with red, and wrap a 10-point stroke around it (i.e.
> completely outside the rect)? In that case, stroke it *first* with a 20-point
> line width, then fill it. Or are you trying to put a 10-point stroke centered
> on the rect edge, and fill the interior with red without overlaying the
> stroke? In that case, inset the rect by 5 points, then do the above.
_______________________________________________
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