> 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/built-in-variables/environment.md).

# Environment

## `frameCount`

This variable stores how many frames have been drawn since the sketch (most recently) started.

![](/files/3uk7gnOUjoPfRr34WMuq)

For example - if the frame rate is set to 60 (which is the default) - after 3 seconds, frameCount = 180 because this is how many frames have been drawn during that time.

## `width`

This variable stores the width of the **canvas in pixels**, not to be confused with the width of the window, `windowWidth`

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

## `height`

This variable stores the height of the **canvas in pixels**, not to be confused with the height of the window, `windowHeight`

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

## `windowWidth`

This variable stores the width of the **window**, not to be confused with the width of the canvas `width`.\
This variable changes as the window size changes.

<img src="/files/5mxzYkDExSExQy6KwJv4" alt="" data-size="original">

## `windowHeight`

This variable stores the height of the **window**, not to be confused with the height of the canvas `height`.\
This variable changes as the window size changes.

![](/files/mgxhsA8FWRhOrQ3Kl0dB)

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