> For the complete documentation index, see [llms.txt](https://easy-draw.joemazzone.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easy-draw.joemazzone.net/python/starter-template.md).

# Starter Template

To open the Easy Draw screen, all you need is three lines of code.  It is that easy!

```python
# Learn how to use Easy Draw!
# https://easy-draw.joemazzone.net/python/module-reference

import easy_draw           # Import the module to use it

easy_draw.load_canvas()    # Always start your program with this

# --- Your main program below here ---



# --- Your main program ends here ---

easy_draw.end()            # Always end your program with this
```

The following will open when you run the above program:

![](/files/-MRHCya35_CTd3r-lN-M)

#### Features of the Easy Draw screen:

1\. Grid on and off

To help learners visualize the coordinate system, a grid can be turned on and off.&#x20;

![](/files/-MRHHkyOjhHuUY9s7DxK)

2\. Coordinates

To help learners position shapes on the drawing canvas, as you move your mouse around the canvas the bottom-right corner of the screen showcases the x, y coordinates of your mouse.&#x20;

![](/files/-MRHISHyEVMLUIWMP5gv)

3\. Color Picker

To help learners identify color values to use in their code, they can launch a color picker from the Easy Draw window.&#x20;

*Note: The color picker is native to the operating system and will look different on different systems.*

![](/files/-MRHJ08oCUWvUNLmNWjR)

4\. Save the Canvas Drawing

You can save your drawing as a PNG file by clicking the "Save Canvas" button.  Just be sure to provide the image with a file name.  The image will save in your project's current working directory (most likely the same folder as your code).

![](/files/-MRHJxjNU77xu2Jhs3FW)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://easy-draw.joemazzone.net/python/starter-template.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
