# Lightning

![Icon](https://1941201815-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ2Jwp7mRP9HqIZtQ_h%2F-M06a2WK47QZGo1kFc1g%2F-Lbuwm2QI2WNsG01LsPA%2Fimage.png?generation=1581749186645811\&alt=media)

![Sequencer Grid](https://1941201815-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ2Jwp7mRP9HqIZtQ_h%2F-M06a2WK47QZGo1kFc1g%2F-Lbpzmwp-8a75T3koeZ0%2Fimage.png?generation=1581749196997899\&alt=media)

![](https://1941201815-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LZ2Jwp7mRP9HqIZtQ_h%2F-M06a2WK47QZGo1kFc1g%2F-LpQstVAvCFuPDy9NyQw%2Fimage.png?generation=1581749174419459\&alt=media)

The Lightning effect generates a vertical lightning bolt type of effect. One or multiple colors can be used for the effect. White is always selected for the outer edge of the lightning bolt.

| Option/Settings            | Description                                                                                                                                                                                        |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Number of Segments**     | <p>Defines the number of zigzag segments to be used in the effect.</p><p>Can be adjusted via the Value Curves options.</p>                                                                         |
| **Width of Bolt**          | <p>Controls the width of the zig zag. A value of 1 will form a straight vertical line.</p><p>Can be adjusted via the Value Curves options.</p>                                                     |
| **Forked Lightning (Y,N)** | Controls whether the effect generates a forked effect.                                                                                                                                             |
| **Top Location (x;y)**     | <p>Defines the coordinates of the top end of the lightning bolt.</p><p>Can be adjusted via the Value Curves options.</p>                                                                           |
| **X Movement**             | <p>Controls the movement of the lightning effect horizontally across the effect. Can be made to be stationary or move in either direction.</p><p>Can be adjusted via the Value Curves options.</p> |
| **Direction**              | Up or Down for the Lightning Bolt                                                                                                                                                                  |


---

# 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://manual.xlights.org/xlights/effects/off/lightning.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.
