set breathing enabled
Problem it solves
You want the lantern light to gently pulse and flicker to make a spooky scene feel alive, or turn off pulsing for steady lighting.
What this block does
Enables or disables the pulsating 'breathing' animation that causes the lantern radius to expand and contract smoothly over time.
The block
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| enabled | boolean | true | True to make the light pulse like a flickering flame, or false for steady light. |
Example
lantern.setBreathingEnabled(true)
Add the extension
Add github:felixtsu/pxt-lantern to your project, or open: Import pxt-lantern.