Optional
alignmentThe alignment of the stroke relative to the path.
Optional
capThe style to use for the ends of open paths.
Optional
joinThe style to use where paths connect.
Optional
miterControls how far miter joins can extend. Only applies when join is 'miter'. Higher values allow sharper corners.
Optional
pixelWhen true, ensures crisp 1px lines by aligning to pixel boundaries.
Only available for Graphics fills.
Optional
widthThe width of the stroke in pixels.
A stroke attribute object that defines how lines and shape outlines are drawn. Controls properties like width, alignment, line caps, joins, and more.
Example
See