Module nannou::geom::line::cap [−][src]
Items related to capping the ends of Lines or Polylines.
Line caps are the geometry that describes the end of a line.
Nannou provides three common types of line caps:
- butt: Ends the stroke flush with the start or end of the line. This is the default.
- round: Ends the line with a half circle whose radius is half the line thickness.
- square: Extends the line on either end by half the thickness.
start end | | v v --------------------------- | | butt (default) --------------------------- /---------------------------\ ( ) round \---------------------------/ ------------------------------- | | square ------------------------------- ^ ^ | | start end
Modules
butt | |
round | |
square |
Enums
Vertices |
An iterator yielding the vertices of a line cap. |