Difference between revisions of "HPL3/Amnesia: Rebirth/Scripting/cColor"

From Frictional Wiki
Jump to navigation Jump to search
(Created page with "{{ScriptingStub}} Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki! ==Fields== {{CodeDocSummaryTop|Field Type|Field Name...")
 
(No difference)

Latest revision as of 23:05, 15 November 2020

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...