# frameRate()

## Example

```python
frameRate(10)
```

10 frames are drawn per second so the image refreshes quite slowly

![](https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2FqhDdpWeIcQOxgx107Qzz%2Fslowfps.gif?alt=media\&token=52e4651a-67ba-412e-b3d5-219932d96e7e)

```python
frameRate(60)
```

60 frames are drawn per second so the image refreshes very rapidly

![](https://768248463-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fqbs7pgU3AVBY06Rl9M31%2Fuploads%2FE82S8sYJ808ZLjp1ReO8%2Ffastfps.gif?alt=media\&token=ab161e5b-d231-479d-8acd-ae46c8c6202e)

Sets the number of frames to draw every second on the canvas. For example, frameRate(10) will cause the canvas to attempt to refresh 10 times per second.&#x20;

The default frame rate is 60 frames per second (fps), if the device cannot draw at the specified fps, it will draw at the highest fps possible.&#x20;

```python
frameRate(fps)
```

<table><thead><tr><th width="100">Input</th><th>Description</th></tr></thead><tbody><tr><td>fps</td><td>number of frames per second to be set</td></tr></tbody></table>

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