When drawing a closed path or region, there are no endcaps, so you cannot give the endcap parameters. To facilitate debugging, stroke() accepts "paths" that have a single point. These are drawn with ...