Hello, I would like to make the rectangle rounded caps better, how to do this? Can each corner have the same look?

what I tried, or how I made it dashed.
https://youtu.be/aT2ziko3XJc?si=lO2ajOIWj6Z-pd9e

1 screen shot should be attached. Thank You.
Click image for larger version. 

Name:	xara-dash-rectangle3.jpg 
Views:	271 
Size:	73.4 KB 
ID:	134264