> For the complete documentation index, see [llms.txt](https://learnpython.strivemath.com/p5-python-web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learnpython.strivemath.com/p5-python-web/reference/colour-and-outline/strokeweight.md).

# strokeWeight()

### Example

<figure><img src="/files/zoN2VamtOW1rxlCAJ90L" alt=""><figcaption></figcaption></figure>

```python
strokeWeight(5)

circle(width/2,height/2,200)
line(50,50,350,50)
```

<figure><img src="/files/zA7j8Ar8YddoWPhCsGob" alt=""><figcaption></figcaption></figure>

```python
strokeWeight(25)

circle(width/2,height/2,200)
line(50,50,350,50)
```

### Syntax

```
strokeWeight(w)
```

| Input | Description                           | Default |
| ----- | ------------------------------------- | ------- |
| w     | The thickness of any lines or borders | 1       |

{% hint style="info" %}
Find these documents helpful? Let the people who made them help your child learn to code at [**Strivemath**](https://www.strivemath.com/)<mark style="color:blue;">**!**</mark>

We'd love to hear your Feedback/Comments [here](https://docs.google.com/forms/d/e/1FAIpQLSeqorBAGTya-YBRI-VFjJxtgQtCz3ucGDI96K96sNyuaGuvdw/viewform?usp=sf_link).
{% endhint %}
