This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
set_directional_light_color [2017/08/13 13:18] – justin | set_directional_light_color [2020/05/04 09:33] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Changes the color of the map's [[directional light]] over a duration of time. | + | Changes the [[color]] of the [[map|map's]] [[directional light]] over a duration of time. |
+ | ====Signature: | ||
<code python> | <code python> | ||
set_directional_light_color(color, | set_directional_light_color(color, | ||
Line 9: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |color|New color for the [[directional 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 directional light on or off instead of changing its color, see the related [[Set Directional Light Enabled]] function. | + | If you'd like to instantly toggle the [[directional light]] on or off instead of changing its [[color]], see the related [[Set Directional Light Enabled]] function. |
</ | </ | ||
====Example: | ====Example: | ||
- | < | + | < |
set_directional_light_color(color[95, | set_directional_light_color(color[95, | ||
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Set Directional Light Color** function to change the overall mood of a scene or to complement another light source' | + | Use the **Set Directional Light Color** function to change the overall mood of a scene or to complement another light source' |
</ | </ | ||
Line 33: | Line 34: | ||
<WRAP half column> | <WRAP half column> | ||
- | ====Visual Demo: | + | ====Visual Demo:==== |
{{: | {{: | ||
</ | </ |