Both sides previous revision Previous revision | Next revision Both sides next revision | ||
hpl3:community:scripting:classes:ccolor [2015/11/06 02:16] abion47 [Remarks] |
hpl3:community:scripting:classes:ccolor [2015/11/06 02:34] abion47 [Functions] |
||
---|---|---|---|
Line 13: | Line 13: | ||
^ Return Type ^ Function Name ^ Parameters ^ Description ^ | ^ Return Type ^ Function Name ^ Parameters ^ Description ^ | ||
| [[cColor]] | ToLinearSpace | const float afPower, \\ const bool abCorrectAlpha, \\ const | Returns the color converted into the linear space. | | | [[cColor]] | ToLinearSpace | const float afPower, \\ const bool abCorrectAlpha, \\ const | Returns the color converted into the linear space. | | ||
- | | [[cColor]] | ToSRGB | const bool abCorrectAlpha, \\ const | Returns the color converted into the [[https://en.wikipedia.org/wiki/SRGB|sRGB]] space. | | + | | [[cColor]] | ToSRGB | const bool abCorrectAlpha, \\ const | Returns the color converted into the [[wp>sRGB|sRGB]] space. | |
====Remarks==== | ====Remarks==== | ||
Read [[http://stackoverflow.com/questions/12524623/what-are-the-practical-differences-when-working-with-colors-in-a-linear-vs-a-no|this post on StackOverflow]] for an explanation on the differences between the linear color space and the sRGB color space. | Read [[http://stackoverflow.com/questions/12524623/what-are-the-practical-differences-when-working-with-colors-in-a-linear-vs-a-no|this post on StackOverflow]] for an explanation on the differences between the linear color space and the sRGB color space. |