This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
set_ambient_light_color [2020/02/15 14:18] – justin | set_ambient_light_color [2021/04/21 18:48] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Changes the color of the map's [[ambient light]] over a duration of time. | + | Changes the [[color]] of the [[map|map's]] [[ambient light]] over a duration of time. |
====Signature: | ====Signature: | ||
Line 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |color|New color for the [[ambient light]].|[[Color]]|Yes| | + | |color|New |
- | |duration|Fade duration from its current color to the new color.|[[Decimal]]|No| | + | |duration|Fade duration from its current |
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | If you'd like to instantly toggle the ambient light on or off instead of changing its color, see the related [[Set Ambient Light Enabled]] function. | + | If you'd like to instantly toggle the [[ambient light]] on or off instead of changing its [[color]], see the related [[Set Ambient Light Enabled]] function. |
</ | </ | ||
====Example: | ====Example: | ||
<code bauxite> | <code bauxite> | ||
- | 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 another light source' | + | Use the **Set Ambient Light Color** function to change the overall mood of a room or to complement another light source' |
</ | </ | ||
Line 34: | Line 34: | ||
<WRAP half column> | <WRAP half column> | ||
- | ====Visual Demo: | + | ====Visual Demo:==== |
{{: | {{: | ||
</ | </ |