User Tools

Site Tools


set_directional_light_color

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
set_directional_light_color [2017/08/13 07:19] – created justinset_directional_light_color [2018/03/16 09:48] justin
Line 4: Line 4:
 Changes the color of the map's [[directional light]] over a duration of time. Changes the color of the map's [[directional light]] over a duration of time.
  
 +====Signature:====
 <code python> <code python>
 set_directional_light_color(color, duration) set_directional_light_color(color, duration)
Line 18: Line 19:
 ====Example:==== ====Example:====
 <code lua> <code lua>
-set_directional_light_color(color[2550255], 1)+set_directional_light_color(color[95570], 1)
 </code> </code>
-//Results:// The color of the map's [[directional light]] will change to purple over a duration of one second.+//Results:// The color of the map's [[directional light]] will change to a dark orange hue over a duration of one second.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Set Directional Light Color** function to +Use the **Set Directional Light Color** function to change the overall mood of a scene or to complement another light source's color change.
 </WRAP> </WRAP>
  
set_directional_light_color.txt · Last modified: 2021/04/21 18:49 by justin