Howto:Illuminate faces: Difference between revisions

m
m (→‎Basics: fixed more typos)
Line 91: Line 91:


===Changing illumination color===
===Changing illumination color===
Sometimes there are lights that change colours every now and then. It's not very hard to implement this in FlightGear. There are multiple ways to do this, but we will use the /sim/time/utc/ property. The example below changes color from red, green to blue every. We specified that the color should be red at every time behind 0 second. So if the time is 15:20:05 the color will be red. But at 22:01:21 color will be changed to green. Using this you could even make the lighting color be different every second of the day. Antoher possibility is a light that illuminates only between two specified times like from 21:00:00 till 6:30:00.
Sometimes there are lights that change colours every now and then. It's not very hard to implement this in FlightGear. There are multiple ways to do this, but we will use the /sim/time/utc/ property. The example below changes color from red, green to blue every. We specified that the color should be red at every time behind 0 second. So if the time is 15:20:05 the color will be red. But at 22:01:21 color will be changed to green. Using this you could even make the lighting color be different every second of the day. Another possibility is a light that illuminates only between two specified times like from 21:00:00 till 6:30:00.


  <animation>
  <animation>
240

edits