> For the complete documentation index, see [llms.txt](https://docs.pydraw.graphics/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pydraw.graphics/guides/getting-started.md).

# Getting Started

Now that we have pydraw installed, we can write a base program:

```python
from pydraw import *

screen = Screen(800, 600)

# code goes here!

screen.stop()
```

{% hint style="info" %}
Note that you could also replace line 7 with this to support animation:

```python
fps = 30
running = True
while running:
    screen.update()
    screen.sleep(1 / fps)
```

{% endhint %}

## Example Program

We can go ahead and add some shapes:

```python
from pydraw import *

screen = Screen(800, 600)

box = Rectangle(screen, 50, 50, 50, 50)
triangle = Triangle(screen, 150, 150, 50, 50)
circle = Oval(screen, 250, 250, 50, 50)
hexagon = Polygon(screen, 6, 350, 350, 50, 50)

screen.stop()
```

And the following output will be produced:

![Output for the Example Above](/files/-MUK7hVh6TKhFRnx4IaX)
