# Shading

<figure><img src="/files/TuzNudzYgIAVUlfBbusG" alt="" width="203"><figcaption></figcaption></figure>

In the palette panel, tap the ... button, then "Shading"

### What is shading?

The main component of shading is a color ramp from the palette.&#x20;

What shading does is replacing pixels that have colors in the ramp with adjacent colors. The new colors will be determined by the direction (forward or backward).

Pixels with colors not in the ramp will be ignored.

### How to use shading

{% embed url="<https://youtu.be/0yOkgiXIj7o>" %}

To select the color ramp, we'll need to select the 2 ends of it from the palette. If we want to replace the ramp, clear it first with the Clear button.

To flip the direction, tap on any color of the ramp.

Tap on the Enabled/Disabled button to toggle shading on/off.

When enabled, shading will affect all drawing tools: brush, line, shape, color bucket.


---

# 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/palette/shading.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.
