# DRAW\_GRID

`DrawGridStep` is used to draw a grid on the specified image, based on the `x` or `y` coordinates of the corners, and the number of segments within the grid in both directions. The four corner coordinates are defined as points, and come from list of point targeted data, in the following order: top left, top right, bottom left, bottom right.

| Configs         | Descriptions                                                                                                                                                                                                                                                                                                          |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| imageName       | Name of the input image key from the previous step. If set to `null`, it will try to find any image in the incoming data instance.                                                                                                                                                                                    |
| pointsName      | Name of the list of points specifying the corners, in order: top left, top right, bottom left, bottom right.                                                                                                                                                                                                          |
| gridX           | The number of grid segments between (top left and top right) and (bottom left and bottom right).                                                                                                                                                                                                                      |
| gridY           | The number of grid segments between (top left and bottom left) and (top right and bottom right).                                                                                                                                                                                                                      |
| coordsArePixels | If `true`, the lists are in pixels coordinates, not from 0 to 1.                                                                                                                                                                                                                                                      |
| borderColor     | Color of the border. The color can be a hex/HTML string like `#788E87`, an `RGB` value like - `rgb(128,0,255)` or  it can be from a set of predefined HTML color names: `white`, `silver`, `gray`, `black`, `red`, `maroon`, `yellow`, `olive`, `lime`, `green`, `aqua`, `teal`, `blue`, `navy`, `fuchsia`, `purple`. |
| gridColor       | Color of the grid. The color can be a hex/HTML string like `#788E87`, an `RGB` value like - `rgb(128,0,255)` or  it can be from a set of predefined HTML color names:`white`, `silver`, `gray`, `black`, `red`, `maroon`, `yellow`, `olive`, `lime`, `green`, `aqua`, `teal`, `blue`, `navy`, `fuchsia`, `purple`.    |
| borderThickness | Line thickness to use to draw the border in pixels. Default value is `1`.                                                                                                                                                                                                                                             |
| gridThickness   | Line thickness to use to draw the border in pixels. If `null` then the same value as the `borderThickness` is used.                                                                                                                                                                                                   |


---

# 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://serving.konduit.ai/references/pipeline-steps/draw_grid.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.
