<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-CA">
	<id>http://docs.fox-labs.io/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AColor%2Fdoc</id>
	<title>Module:Color/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://docs.fox-labs.io/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AColor%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://docs.fox-labs.io/wiki/index.php?title=Module:Color/doc&amp;action=history"/>
	<updated>2026-07-17T01:51:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://docs.fox-labs.io/wiki/index.php?title=Module:Color/doc&amp;diff=175&amp;oldid=prev</id>
		<title>Inari: Created page with &quot;{{Module rating|release}} {{high-use}} This module is used primarily by {{tl|Infobox color}}, eliminating the need for external color converters and preventing mismatch between color coordinates.  == Usage == To use this module, you may use one of the above listed templates or invoke the module directly. All functions that accept hexadecimal triplets also handle the shorthand three-digit format.  To convert a hexadecimal triplet to an RGB triplet as comma...&quot;</title>
		<link rel="alternate" type="text/html" href="http://docs.fox-labs.io/wiki/index.php?title=Module:Color/doc&amp;diff=175&amp;oldid=prev"/>
		<updated>2026-01-17T06:19:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Module rating|release}} {{high-use}} This module is used primarily by {{tl|Infobox color}}, eliminating the need for external color converters and preventing mismatch between color coordinates.  == Usage == To use this module, you may use one of the above listed templates or invoke the module directly. All functions that accept &lt;a href=&quot;/wiki/index.php?title=Hex_triplet&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Hex triplet (page does not exist)&quot;&gt;hexadecimal triplets&lt;/a&gt; also handle the shorthand three-digit format.  To convert a hexadecimal triplet to an RGB triplet as comma...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|release}}&lt;br /&gt;
{{high-use}}&lt;br /&gt;
This module is used primarily by {{tl|Infobox color}}, eliminating the need for external color converters and preventing mismatch between color coordinates.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
To use this module, you may use one of the above listed templates or invoke the module directly. All functions that accept [[Hex triplet|hexadecimal triplets]] also handle the shorthand three-digit format.&lt;br /&gt;
&lt;br /&gt;
To convert a hexadecimal triplet to an RGB triplet as comma-separated values:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:Color|&amp;#039;&amp;#039;hexToRgbTriplet&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|color}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To convert a hexadecimal triplet to the [[CMYK color model]] without a color profile (which is a very bad idea!):&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:Color|&amp;#039;&amp;#039;hexToCmyk&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|color|precision=?|pctsign=?}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To convert a hexadecimal triplet to [[HSL and HSV|HSL or HSV]]:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:Color|&amp;#039;&amp;#039;hexToHsl&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|color|precision=?}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:Color|&amp;#039;&amp;#039;hexToHsv&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|color|precision=?}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To convert a hexadecimal triplet to the perceptual [[CIELChuv|CIELCh&amp;lt;sub&amp;gt;uv&amp;lt;/sub&amp;gt;]] color space:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:Color|&amp;#039;&amp;#039;hexToCielch&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|color|precision=?}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To mix two colors in the more physically correct linear RGB space:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:Color|&amp;#039;&amp;#039;hexMix&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|color1|color2|proportion|min=?|max=?}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To convert an RGB triplet to a hex code:&lt;br /&gt;
:&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;#invoke:Color|&amp;#039;&amp;#039;rgbTripletToHex&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|r|g|b}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following parameters are optional:&lt;br /&gt;
* &amp;lt;code&amp;gt;precision&amp;lt;/code&amp;gt;: defaults to &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; (zero)&lt;br /&gt;
* &amp;lt;code&amp;gt;pctsign&amp;lt;/code&amp;gt;: set to &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; (zero) to suppress percent signs in the generated output&lt;br /&gt;
* &amp;lt;code&amp;gt;proportion&amp;lt;/code&amp;gt;: proportion of &amp;lt;code&amp;gt;color2&amp;lt;/code&amp;gt;, defaults to 50&lt;br /&gt;
* &amp;lt;code&amp;gt;min&amp;lt;/code&amp;gt;: minimum value of proportion range, defaults to 0&lt;br /&gt;
* &amp;lt;code&amp;gt;max&amp;lt;/code&amp;gt;: maximum value of proportion range, defaults to 100&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
[[Category:Modules handling colors]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Inari</name></author>
	</entry>
</feed>