Lightning
Bolts from the sky, an arc, or a plasma globe.
- Kind
- Layer · Elements
- Script name
lightning- Cost to draw
- Heavy
- Reacts to
- sound and the pointer
- Blend
- Light costs no extra pass

Lightning
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
Stylestyle | choice | Storm | Storm, Arc, Plasma globe |
Boltcolour | colour | #caecff | – |
Glowcolour2 | colour | #a98bff | – |
Strikes a minuterate | number | 14 | 1 to 120In a storm |
Thicknessthickness | number | 1× | 0.3 to 3× |
Jaggednessjag | number | 1× | 0 to 2× |
Branchesbranches | number | 50% | 0% to 100% |
Sky flashflash | number | 35% | 0% to 100% |
Brightnessbrightness | number | 100% | 0% to 200% |
Arc from, left and rightfromX | number | 20% | 0% to 100% |
Arc from, up and downfromY | number | 50% | 0% to 100% |
Arc to, left and righttoX | number | 80% | 0% to 100% |
Arc to, up and downtoY | number | 50% | 0% to 100% |
Reaches for the pointerreach | on or off | on | – |
Strikes on the beatsound | number | 0% | 0% to 100% |
From a script
Every setting above can be changed by the scene's logic, by its key. Say the layer is called Lightning:
scene.set("Lightning", "colour", "#ff8a5c");scene.animate("Lightning", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Lightning", "colour", "#ff8a5c");scene.animate("Lightning", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetLightning
Parameter Namecolour
Parameter Value
Used in
The example scenes with a Lightning layer in them. Each picture is the whole scene, not the layer alone: open one to see what the layer does in it.
What every layer has
Besides its own settings, every layer has its opacity, blend, placement, quick effects and an effects stack. They're listed once, on the layers page.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.
Storm Front