![example picture for stroke_cap()](/images/reference/Py5Shape_stroke_cap_0.png)
```python
def make_line(cap):
s = py5.create_shape()
s.begin_shape()
s.stroke_weight(12.0)
s.stroke_cap(cap)
s.vertex(20, 0)
s.vertex(80, 0)
s.end_shape()
return s
def setup():
py5.shape(make_line(py5.ROUND), 0, 30)
py5.shape(make_line(py5.SQUARE), 0, 50)
py5.shape(make_line(py5.PROJECT), 0, 70)
```