======Set Directional Light Color======
----
Changes the [[color]] of the [[map|map's]] [[directional light]] over a duration of time.
====Signature:====
set_directional_light_color(color, duration)
^Argument^Description^Type^Required^
|color|New [[color]] for the [[directional light]].|[[Color]]|Yes|
|duration|Fade duration from its current [[color]] to the new [[color]].|[[Number]]|No|
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:====
set_directional_light_color(color[95, 57, 0], 1);
//Results:// The [[color]] of the [[map|map's]] [[directional light]] will change to a dark orange hue over a duration of one second.
Use the **Set Directional Light Color** function to change the overall mood of a scene or to complement another light source's [[color]] change.
====Editor Node:====
{{:wiki:set_directional_light_color_node.png?nolink|}}
====Visual Demo:====
{{:wiki:set_directional_light_color_demo.gif?nolink|}}
~~NOTOC~~