Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The simplest solution would just be to stroke the path twice. First with black at a bigger stroke width and then stroke the same path again using the blue color with a slightly smaller stroke width.</p> <p><strong>Edit:</strong> <br> If I remember correctly you can use <code>CGPathCreateCopyByStrokingPath(...)</code> to create a new path that you then can both stroke and fill. Then you could use semi-transparent colors.</p> <p>From the documentation:</p> <blockquote> <h2><code>CGPathCreateCopyByStrokingPath</code><br></h2> <p>Creates a stroked copy of another path.</p> <pre><code>CGPathRef CGPathCreateCopyByStrokingPath( CGPathRef path, const CGAffineTransform *transform, CGFloat lineWidth, CGLineCap lineCap, CGLineJoin lineJoin, CGFloat miterLimit ); </code></pre> <p><strong>Parameters</strong><br> <em>path</em><br> <code></code>The path to copy.</p> <p><em>transform</em><br> <code></code>A pointer to an affine transformation matrix, or NULL if no transformation is needed. If specified, Quartz applies the transformation to elements of the converted path before adding them to the new path.</p> <p><em>lineWidth</em><br> <code></code>The line width to use, in user space units. The value must be greater than 0.</p> <p><em>lineCap</em><br> <code></code>A line cap style constant—kCGLineCapButt (the default), kCGLineCapRound, or kCGLineCapSquare. See “CGLineCap”.</p> <p><em>lineJoin</em><br> <code></code>A line join value—kCGLineJoinMiter (the default), kCGLineJoinRound, or kCGLineJoinBevel. See “CGLineJoin”.</p> <p><em>miterLimit</em><br> <code></code>The miter limit to use.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload