This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
set_ambient_light_color [2017/08/12 09:44] – justin | set_ambient_light_color [2020/02/15 14:20] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
Changes the color of the map's [[ambient light]] over a duration of time. | Changes the color of the map's [[ambient light]] over a duration of time. | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
set_ambient_light_color(color, | set_ambient_light_color(color, | ||
Line 10: | Line 11: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
|color|New color for the [[ambient light]].|[[Color]]|Yes| | |color|New color for the [[ambient light]].|[[Color]]|Yes| | ||
- | |duration|Fade duration from its current color to the new color.|[[Decimal]]|No| | + | |duration|Fade duration from its current color to the new color.|[[Number]]|No| |
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
Line 17: | Line 18: | ||
====Example: | ====Example: | ||
- | < | + | < |
set_ambient_light_color(color[255, | set_ambient_light_color(color[255, | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Set Ambient Light Color** function to change the overall mood of a room or to complement | + | Use the **Set Ambient Light Color** function to change the overall mood of a room or to complement |
</ | </ | ||