• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBezierPath with Transparent color stroke
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSBezierPath with Transparent color stroke
  • Next by Date: Menubar not always redrawing in 10.10
  • Previous by thread: Re: NSBezierPath with Transparent color stroke
  • Next by thread: Custom NSTableRowView Question
  • Index(es):
    • Date
    • Thread