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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pydraw.graphics/guides/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
