# 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](https://951329544-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MU0bfJb1iwSHS-dicLI%2F-MUK6EfMWSdMvuc1y97Y%2F-MUK7hVh6TKhFRnx4IaX%2Fimage.png?alt=media\&token=5754ecd2-fe98-4968-a8f4-d439d476d59a)
