OptionalalignmentThe alignment of the stroke relative to the path.
OptionalcapThe style to use for the ends of open paths.
OptionaljoinThe style to use where paths connect.
OptionalmiterControls how far miter joins can extend. Only applies when join is 'miter'. Higher values allow sharper corners.
OptionalpixelWhen true, ensures crisp 1px lines by aligning to pixel boundaries.
Only available for Graphics fills.
OptionalwidthThe 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