Difference between revisions of "LlLinear2sRGB"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "Category:LSL_Functions {{LSL_Function |func=llLinear2sRGB |sort=LinearTosRGB |return_type=vector |p1_type=vector|p1_name=color|p1_desc=Color in the linear color space. |re...")
 
(Removed unrelated text from copy/paste)
Line 9: Line 9:


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.
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.
|caveats=* This function does not operate on historical names. For historical name lookup use [[llRequestUserKey]].
|caveats
|examples
|examples
|helpers
|helpers

Revision as of 19:58, 22 May 2020

Summary

Function: vector llLinear2sRGB( vector color );

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

• vector color Color in the linear color space.

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.

Examples

See Also

Functions

•  llsRGB2Linear To convert from sRGB to the Linear colorspace.

Deep Notes

Signature

function vector llLinear2sRGB( vector color );