Syntax

vector llLinear2sRGB( vector color );

Parameters

vector color
Color in the linear color space.

Return value

Returns a vector Transforms a color specified in linear RGB colorspace into the sRGB colorspace.

Specification

Lights in Second Life are specified in LSL as linear red, green blue values in the range (0.0, 1.0). Internally light calculations are performed in the sRGB colorspace.

The sRGB (Standard Red Green Blue) colorspace is defined in IEC 61966-2-1:1999 and was developed as a joint project between Microsoft and HP.

This calculation is known as an Inverse Electro-Optical Transfer Function (IEOTF).

Caveats

See also

Functions


To convert from sRGB to the Linear colorspace. (EOTF)