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

Both sides previous revisionPrevious revision
Next revision
Previous revision
set_directional_light_color [2017/08/13 13:16] justinset_directional_light_color [2021/04/21 18:49] (current) 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, duration) set_directional_light_color(color, duration)
Line 9: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|color|New color for the [[directional light]].|[[Color]]|Yes| +|color|New [[color]] for the [[directional 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%>
-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.
 </WRAP> </WRAP>
  
 ====Example:==== ====Example:====
-<code lua+<code bauxite
-set_directional_light_color(color[95, 57, 0], 1)+set_directional_light_color(color[95, 57, 0], 1);
 </code> </code>
-//Results:// The color of the map's [[directional light]] will change to dark orange over a duration of one second.+//Results:// The [[color]] of the [[map|map's]] [[directional light]] will change to 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>
  
Line 33: Line 34:
  
 <WRAP half column> <WRAP half column>
-====Visual Demo:==== +====Visual Demo:====
 {{:wiki:set_directional_light_color_demo.gif?nolink|}} {{:wiki:set_directional_light_color_demo.gif?nolink|}}
 </WRAP> </WRAP>
set_directional_light_color.1502655371.txt.gz · Last modified: 2017/08/13 13:16 by justin