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

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

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