> For the complete documentation index, see [llms.txt](https://manual.xlights.org/xlights/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.xlights.org/xlights/effects/off/lightning.md).

# Lightning

![Icon](/files/-Lbuwm2QI2WNsG01LsPA)

![Sequencer Grid](/files/-Lbpzmwp-8a75T3koeZ0)

![](/files/-LpQstVAvCFuPDy9NyQw)

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
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://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.
