SetLightColor

Category: Objects
Since engine version: 7.0 OC

Description

Sets the color of the light that is emitted from this object. By default the object emits white light, if it has a light range. See SetLightRange for further details.

Syntax

void SetLightColor(int color);

Parameter

color:
New color for the light. The color value (V in HSV notation of the color) determines the intensity of the light. A light color of RGB(128, 0, 0) has a value/intensity of 50%. This means that it will be weaker than a light withRGB(255, 0, 0), but it will cover the same area as that light.

Example

		var candle_shine=CreateObject(EnvPack_Candle_Shine);
	  	candle_shine->SetLightRange(30, 20);
		candle_shine->SetLightColor(RGB(255,163,58));
        
Gives a warm shine to a candle shine object.
See also: GetLightColor, SetLightRange
Marky, 2015-06