User Tools

Site Tools


Sidebar

hpl3:community:scripting:classes:ccolor

Table of Contents

cColor

Fields

Field Name Type Description
r float The value of the red channel, on a 0-1 scale.
g float The value of the green channel, on a 0-1 scale.
b float The value of the blue channel, on a 0-1 scale.
a float The value of the alpha channel, on a 0-1 scale.

Functions

Return Type Function Name Parameters Description
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 sRGB space.

Remarks

Read this post on StackOverflow for an explanation on the differences between the linear color space and the sRGB color space.

hpl3/community/scripting/classes/ccolor.1446777280.txt.gz · Last modified: 2015/11/06 02:34 by abion47