ReferenceLayersLight and particles
Stars
A sky of twinkling stars drifting by, or flying past at warp.
- Kind
- Layer · Light and particles
- Script name
stars- Cost to draw
- Heavy
- Blend
- Light costs no extra pass

Stars
| Setting | Kind | Starts at | Range and notes |
|---|---|---|---|
First colourcolour | colour | #f4f6f8 | – |
Second colourcolour2 | colour | #caecff | – |
How manydensity | number | 35% | 2% to 100% |
Sizesize | number | 1× | 0.3 to 4× |
Twinkletwinkle | number | 60% | 0% to 100% |
Motionmotion | choice | Drift | Drift, Warp |
Speedspeed | number | 0.4× | 0 to 4× |
Drift towardsangle | number | 200° | 0 to 360° |
From a script
Every setting above can be changed by the scene's logic, by its key. Say the layer is called Stars:
scene.set("Stars", "colour", "#ff8a5c");scene.animate("Stars", "opacity", 0.5, 2);import { scene } from "motion";scene.set("Stars", "colour", "#ff8a5c");scene.animate("Stars", "opacity", 0.5, 2);◆On Scene Start
ƒSet Layer SettingTarget is Layer
TargetStars
Parameter Namecolour
Parameter Value
Used in
The example scenes with a Stars 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.
Constellations
First Light
Glow Tide
Lantern Sea
Long Horizon
Nebula Drift
Resonance
Snowfall
Two Galaxies