~~NOTOC~~
<=[[4rpl:start| Index]]
* [[4rpl:commands:GetThemeTextureLight|Get]]
* [[4rpl:commands:SetThemeTextureLight|Set]]
====== SetThemeTextureLight ======
SetThemeTextureLight(<-terrainLevel <-red <-green <-blue)
===== Description =====
Sets the current theme's light color for the specified level. Terrain levels range from 1 to 20.
Three values; red/green/blue are passed in. Each is a floating point number where 1 is full brightness and 0 is minimal brightness.
The texture light gets multiplied with the texture color at each pixel to determine the final color to show on the screen.
So a color of [1,1,1] will leave the texture unaltered.
===== Examples =====
SetThemeTextureLight(1 0.8 0.4 0.2)
<=[[4rpl:start| Index]]