SetLightColor

Kategorie: Objekte
Ab Engineversion: 7.0 OC

Beschreibung

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.

Beispiel

		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.
Siehe auch: GetLightColor, SetLightRange
Marky, 2015-06