capstyle
CapStyle refers to the style used to terminate the ends of stroked lines in vector graphics and drawing APIs. It defines how the end of a line is rendered when the stroke ends at a point or at a bend, affecting visual length and form.
The most common options are butt, round, and square. A butt cap ends exactly at the line's
Different graphics frameworks expose this setting under different names but with similar behavior. In SVG and
Practical use: capStyle influences how lines look at open paths and when joining segments. Choice of cap