Motion
Get Motion

ReferenceLayersElements

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
The Lightning layer with its default settings: a strike of its storm, over a dark sky
The Lightning layer with its default settings: a strike of its storm, over a dark sky.

Lightning

SettingKindStarts atRange and notes
StylestylechoiceStormStorm, Arc, Plasma globe
Boltcolourcolour#caecff–
Glowcolour2colour#a98bff–
Strikes a minuteratenumber141 to 120In a storm
Thicknessthicknessnumber1×0.3 to 3×
Jaggednessjagnumber1×0 to 2×
Branchesbranchesnumber50%0% to 100%
Sky flashflashnumber35%0% to 100%
Brightnessbrightnessnumber100%0% to 200%
Arc from, left and rightfromXnumber20%0% to 100%
Arc from, up and downfromYnumber50%0% to 100%
Arc to, left and righttoXnumber80%0% to 100%
Arc to, up and downtoYnumber50%0% to 100%
Reaches for the pointerreachon or offon–
Strikes on the beatsoundnumber0%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);

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.