User Tools

Site Tools


set_ambient_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
Next revisionBoth sides next revision
set_ambient_light_color [2017/08/13 13:23] justinset_ambient_light_color [2020/04/22 17:53] 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:====
 <code python> <code python>
 set_ambient_light_color(color, duration) set_ambient_light_color(color, duration)
Line 17: Line 18:
  
 ====Example:==== ====Example:====
-<code lua>+<code bauxite>
 set_ambient_light_color(color[255, 0, 255], 1) set_ambient_light_color(color[255, 0, 255], 1)
 </code> </code>
-//Results:// The color of the map's [[ambient light]] will change to purple over a duration of one second.+//Results:// The color of the map's [[ambient light]] will change to magenta over a duration of one second.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
Line 33: Line 34:
  
 <WRAP half column> <WRAP half column>
-====Visual Demo:==== +====Visual Demo:====
 {{:wiki:set_ambient_light_color_demo.gif?nolink|}} {{:wiki:set_ambient_light_color_demo.gif?nolink|}}
 </WRAP> </WRAP>
set_ambient_light_color.txt · Last modified: 2021/04/21 18:48 by justin