![example picture for stroke_weight()](/images/reference/Py5Shape_stroke_weight_0.png)
```python
def make_line(weight):
s = py5.create_shape()
s.begin_shape()
s.stroke_weight(weight)
s.vertex(20, 0)
s.vertex(80, 0)
s.end_shape()
return s
def setup():
py5.shape(make_line(1), 0, 20) # default
py5.shape(make_line(4), 0, 40)
py5.shape(make_line(10), 0, 70)
```