[ static enum ] Cap

Class: Stroke.

Description:

Static enum for stroke cap styles.
Defines how the ends of open subpaths are drawn.

Type: number

Properties:

Name Description

Butt

Flat end, no extension beyond the end point.

Round

Rounded end with a half-circle extension.

Square

Flat end extended by half the line width.

Examples:

Stroke.Cap.Round