> For the complete documentation index, see [llms.txt](https://viridian-games.gitbook.io/pixel-palette/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://viridian-games.gitbook.io/pixel-palette/core-components/drawing-settings.md).

# Drawing Settings

**DrawingSettings** is a simple remote control for everything else. UI buttons don't talk directly to the canvas or file system, they press a button on DrawingSettings, and DrawingSettings handles the rest.

#### What it does

<table><thead><tr><th width="131.66668701171875">Category</th><th>Methods</th><th>What happens</th></tr></thead><tbody><tr><td><strong>Tools</strong></td><td><code>SetPenBrush()</code>, <code>SetEraserBrush()</code>, <code>SetFillBrush()</code>, <code>SetColorPickerBrush()</code>, <code>SetSelectBrush()</code></td><td>Switches to that tool</td></tr><tr><td><strong>Brush</strong></td><td><code>SetBrushSize(1–16)</code>, <code>SetColor(Color)</code></td><td>Changes size or pen color</td></tr><tr><td><strong>Undo/Redo</strong></td><td><code>Undo()</code>, <code>Redo()</code></td><td>Steps back or forward</td></tr><tr><td><strong>Canvas</strong></td><td><code>SetCanvasSize(w, h)</code>, <code>ClearCanvas()</code></td><td>Resizes or wipes everything</td></tr><tr><td><strong>Selection</strong></td><td><code>DeleteSelection()</code>, <code>ClearSelection()</code></td><td>Removes or drops the selection</td></tr><tr><td><strong>File I/O</strong></td><td><code>ExportPNG()</code>, <code>ExportAllLayers()</code>, <code>ImportPNG()</code>, <code>ImportPNGAsNewLayer()</code>, <code>SaveProject()</code>, <code>LoadProject()</code>, <code>ExportSpriteSheet()</code></td><td>All the save/load/export operations</td></tr><tr><td><strong>Info</strong></td><td><code>LastExportPath</code>, <code>LastProjectPath</code>, <code>Canvas</code>, <code>FileIO</code></td><td>Access to the last saved paths and core components</td></tr></tbody></table>


---

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

```
GET https://viridian-games.gitbook.io/pixel-palette/core-components/drawing-settings.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.
