<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=HPL3%2FCommunity%2FScripting%2FClasses%2Fccolor</id>
	<title>HPL3/Community/Scripting/Classes/ccolor - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frictionalgames.com/page?action=history&amp;feed=atom&amp;title=HPL3%2FCommunity%2FScripting%2FClasses%2Fccolor"/>
	<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=HPL3/Community/Scripting/Classes/ccolor&amp;action=history"/>
	<updated>2026-05-14T04:44:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.frictionalgames.com/page?title=HPL3/Community/Scripting/Classes/ccolor&amp;diff=2502&amp;oldid=prev</id>
		<title>Maintenance script: Upload classes to sub</title>
		<link rel="alternate" type="text/html" href="https://wiki.frictionalgames.com/page?title=HPL3/Community/Scripting/Classes/ccolor&amp;diff=2502&amp;oldid=prev"/>
		<updated>2020-07-30T09:12:28Z</updated>

		<summary type="html">&lt;p&gt;Upload classes to sub&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==cColor==&lt;br /&gt;
&lt;br /&gt;
=== Constructors ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=1&lt;br /&gt;
!Constructor !!Description |&lt;br /&gt;
|-&lt;br /&gt;
| cColor()  || Creates a color with a default value of opaque black. &lt;br /&gt;
|-&lt;br /&gt;
| cColor(float, float)  || Creates a color with the first parameter given to all the RGB values (the color will be a shade of grey) and the second parameter given to the alpha channel. &lt;br /&gt;
|-&lt;br /&gt;
| cColor(float, float, float)  || Creates an opaque color using the given values as RGB data. &lt;br /&gt;
|-&lt;br /&gt;
| cColor(float, float, float, float)  || Creates a color using the given values as RGBA data.   &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Fields===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=1&lt;br /&gt;
! Field Name !! Type !! Description &lt;br /&gt;
|-&lt;br /&gt;
|  r  ||  float  ||  The value of the red channel. &lt;br /&gt;
|-&lt;br /&gt;
|  g  ||  float  ||  The value of the green channel. &lt;br /&gt;
|-&lt;br /&gt;
|  b  ||  float  ||  The value of the blue channel. &lt;br /&gt;
|-&lt;br /&gt;
|  a  ||  float  ||  The value of the alpha channel. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Functions===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; border=1&lt;br /&gt;
! Return Type !! Function Name !! Parameters !! Description &lt;br /&gt;
|-&lt;br /&gt;
|  [[cColor]]  ||  ToLinearSpace  ||  const float afPower, &amp;lt;br /&amp;gt;const bool abCorrectAlpha, &amp;lt;br /&amp;gt;const  ||  Returns the color converted into the linear space. &lt;br /&gt;
|-&lt;br /&gt;
|  [[cColor]]  ||  ToSRGB  ||  const bool abCorrectAlpha, &amp;lt;br /&amp;gt;const  ||  Returns the color converted into the [[wp&amp;gt;sRGB || sRGB]] space. &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Remarks===&lt;br /&gt;
&lt;br /&gt;
Color channel values are stored using a 0.0 - 1.0 range, where 0.0  is equal to 0 and 1.0 is equal to 255.&lt;br /&gt;
&lt;br /&gt;
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.&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
		
	</entry>
</feed>