# Color replace

<figure><img src="/files/pw0jd3YBNqBvOi2FsnKq" alt=""><figcaption></figcaption></figure>

Replace colors on the canvas with other colors.

<figure><img src="/files/kU8NPl9GAIdyD1LX2ux2" alt="" width="375"><figcaption></figcaption></figure>

Color replace comes in 2 modes: Canvas and Drawing tools.

* Canvas: apply the color replace immediately to the canvas
* Drawing tools: It makes the drawing tools (brush, line, shape) into a color replacer,  so that instead of applying the active color onto the canvas, it will apply the current color replace parameters onto the canvas as we draw.

#### 1. Colors to be replaced

This is the color on the canvas that will be replaced. When this color box is active (bigger), besides its own color picker, it will also take color from the palette, the main color picker, and the eye dropper.

#### 2. Replacing colors

This is the color that will be used to replace the existing color. When this color box is active (bigger), besides its own color picker, it will also take color from the palette, the main color picker, and the eye dropper.

#### 3. Tolerance

[Read more about tolerance >](/tools/color-bucket.md#tolerance)

#### 4. Layer/frame selector

Whether to apply to selected layers, visible layers, or all layers.

#### 6. Preview toggle

If this toggle is one, the changes will be displayed live on the canvas.&#x20;

{% hint style="info" %}
Keep in mind that if we're replacing colors on many layers and frames with Preview on, it might lag. If that happens, we can turn this off, select color, and turn it on again to see the effect. Repeat this to avoid lag.
{% endhint %}

### Demo video

{% embed url="<https://youtu.be/CSmpX8UW-1Q>" %}
Artwork by [UEVOXEL](https://twitter.com/UeVoxel)
{% endembed %}


---

# 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.pixquare.art/tools/additional-tools/color-replace.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.
