Re: NSBezierPath with Transparent color stroke

2014-10-20 Thread Gordon Apple
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

Re: NSBezierPath with Transparent color stroke

2014-10-20 Thread Quincey Morris
On Oct 20, 2014, at 06:50 , Leonardo 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 t

Re: NSBezierPath with Transparent color stroke

2014-10-20 Thread Ken Thomases
On Oct 20, 2014, at 8:50 AM, Leonardo wrote: > I fill my bezierPath (a simple rect) with a red color. > Then I stroke it with a 10 point border with a 50% transparent gray color. > Since the border of the path gets drawn 50% inside the path and 50% outside > the path, I end up with an external 5

NSBezierPath with Transparent color stroke

2014-10-20 Thread Leonardo
I fill my bezierPath (a simple rect) with a red color. Then I stroke it with a 10 point border with a 50% transparent gray color. Since the border of the path gets drawn 50% inside the path and 50% outside the path, I end up with an external 5 points 50% gray border and an internal 5 points red-gra