HPL3/Amnesia: Rebirth/Scripting/cColor

From Frictional Wiki
Jump to navigation Jump to search

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

Fields

Field Type Field Name And Description
float a
float b
float g
float r

Functions

Return Type Function And Description
cColor ToLinearSpace(const float afPower, const bool abCorrectAlpha)
cColor ToSRGB(const bool abCorrectAlpha)

Details

a

float a

b

float b

g

float g

r

float r

ToLinearSpace

cColor ToLinearSpace(const float afPower,
                     const bool abCorrectAlpha)


Parameters

  • afPower (float) —
  • abCorrectAlpha (bool) —

Returns:

  • cColor

ToSRGB

cColor ToSRGB(const bool abCorrectAlpha)


Parameters

  • abCorrectAlpha (bool) —

Returns:

  • cColor

References

See all references...