> 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()

Changes thickness of lines

### Example

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2FQtuE46wkko7wwZ5WbCtR%2Funtitled%20(2).png?alt=media&amp;token=0f234ff8-4338-4a0b-9544-3e96dd446b51" alt=""><figcaption></figcaption></figure>

```python
strokeWeight(5)

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

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2FFUgPAp0fpDY37okkEKNC%2Funtitled%20(3).png?alt=media&amp;token=0513ef6b-b7e1-4731-b6f5-3019c09d7999" 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 %}
