Skip to main content

Module stroke

Module stroke 

Source
Expand description

Stroke style.

Stroking is offsetting a path by half the line width on both sides and resolving what happens at the ends and corners. The corner cases are where the visual bugs live: a miter join at a near-degenerate angle produces a spike that can extend arbitrarily far from the path, which is what the miter limit exists to bound.

Structs§

StrokeStyle
A stroke’s geometric parameters.

Enums§

LineCap
How a stroke terminates at an open end.
LineJoin
How a stroke turns a corner.