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, "cocoa-dev-requ...@lists.apple.com"
<cocoa-dev-requ...@lists.apple.com> wrote:
> 
> On Oct 20, 2014, at 06:50 , Leonardo <mac.iphone....@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to