Difference between revisions of "LlsRGB2Linear"
Jump to navigation
Jump to search
Rider Linden (talk | contribs) (Created page with "Category:LSL_Functions {{LSL_Function |func=llsRGB2Linear |sort=sRGBToLinear |return_type=vector |p1_type=vector|p1_name=srgb|p1_desc=Color in the sRGB color space. |retur...") |
Chaser Zaks (talk | contribs) |
||
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 | |caveats | ||
|examples | |examples | ||
|helpers | |helpers |
Revision as of 20:59, 22 May 2020
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: vector llsRGB2Linear( vector srgb );Returns a vector Transforms a color specified in the sRGB colorspace to the linear RGB colorspace.
• vector | srgb | – | Color in the sRGB 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.
Caveats
Examples
See Also
Functions
• | llLinear2sRGB | To convert from sRGB to the Linear colorspace. |