# stroke()

### Example

<figure><img src="https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2FuRt6xUU3s8ZB5bWvvz5a%2Funtitled%20(1).png?alt=media&#x26;token=502ea34e-bb0c-44e3-8e61-f667b72e9eec" alt=""><figcaption></figcaption></figure>

```python
stroke('purple')
circle(width/2,height/2,200)
line(50,50,350,50)
```

### Syntax

```python
stroke('NAME')
```

or

```python
stroke(a,b,c)
```

or

```python
stroke(VALUE)
```

| Input | Description                                                                                      |
| ----- | ------------------------------------------------------------------------------------------------ |
| NAME  | the name of any HTML color, for example: **blue**, **green**, **lightgrey**, **skyblue**, etc... |
| a,b,c | RGB or HSB values - see Description below                                                        |
| VALUE | a number from 0 - 255, greyscale with 0 being black and 255 being white                          |

### Description

Changes the color of the **border** of all following **shapes** or **lines**, until another stroke() is called. Shapes have borders and interiors - stroke() changes the border, while [fill()](https://learnpython.strivemath.com/p5-python-web/reference/colour-and-outline/fill) changes the interior. Input can either be the name of an HTML color, a value **0 - 255** for greyscale values with **0 being black** and **255 being white**. Input can also be three numbers for the RGB or HSB color scale - see [colorMode()](https://learnpython.strivemath.com/p5-python-web/reference/colour-and-outline/colormode).

{% 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 %}
