strokeOutline

fun KitePath.strokeOutline(lineWidth: Double, lineCap: Int = 0, lineJoin: Int = 0, miterLimit: Double = 10.0, dashArray: List<Double>? = null, dashPhase: Double = 0.0, tolerance: Double = 0.1): KitePath

The area that stroking this path paints, as a path to fill with the nonzero rule. The pen is round in path space, so the outline filled under a non-uniform matrix gives the elliptical pen that ISO 32000-1, 8.5.3.2 describes.

  • lineWidth is the width of the pen in path units (8.4.3.2). A width that is not positive gives an empty path, so a caller picks its own thinnest line.

  • lineCap is 0 butt, 1 round or 2 projecting square (8.4.3.3).

  • lineJoin is 0 miter, 1 round or 2 bevel (8.4.3.4). A miter longer than miterLimit times the width becomes a bevel (8.4.3.5).

  • dashArray and dashPhase follow 8.4.3.6. Each subpath starts the pattern again, and each dash gets its own caps. A pattern with a negative length, or with no length at all, draws a solid line.

  • Curves become lines that stay within tolerance path units of the curve.

A subpath whose points all coincide paints a dot with round caps and nothing otherwise, because its direction is unknown (8.5.3.2).