<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2Fisaacl%2FColourSpace%2FFormats%2FsRGB24bitHex</id>
	<title>Module:Sandbox/isaacl/ColourSpace/Formats/sRGB24bitHex - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2Fisaacl%2FColourSpace%2FFormats%2FsRGB24bitHex"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/isaacl/ColourSpace/Formats/sRGB24bitHex&amp;action=history"/>
	<updated>2026-06-08T01:46:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/isaacl/ColourSpace/Formats/sRGB24bitHex&amp;diff=146524&amp;oldid=prev</id>
		<title>imported&gt;Toohool: clarify invocation of BaseConvert</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/isaacl/ColourSpace/Formats/sRGB24bitHex&amp;diff=146524&amp;oldid=prev"/>
		<updated>2013-03-11T19:59:17Z</updated>

		<summary type="html">&lt;p&gt;clarify invocation of BaseConvert&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
local bc = require(&amp;#039;Module:BaseConvert&amp;#039;)&lt;br /&gt;
local Tuple = require(&amp;#039;Module:Sandbox/isaacl/ColourSpace/Tuple&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local me = { }&lt;br /&gt;
&lt;br /&gt;
me.infoFor = {&lt;br /&gt;
    sRGB24bitHex = {&lt;br /&gt;
        colourSpace = &amp;#039;sRGB&amp;#039;,&lt;br /&gt;
        formatType = &amp;#039;24bit&amp;#039;,&lt;br /&gt;
        defaultConversion = &amp;#039;sRGB24bit&amp;#039;,&lt;br /&gt;
        parseInput = function(args)&lt;br /&gt;
            local hexCharPattern = &amp;#039;^#?(%x+)$&amp;#039;&lt;br /&gt;
            local red = string.match(args[1], hexCharPattern)&lt;br /&gt;
            local green = string.match(args[2], hexCharPattern)&lt;br /&gt;
            local blue = string.match(args[3], hexCharPattern)&lt;br /&gt;
            red = bc.convert({n = red, base = 10, from = 16})&lt;br /&gt;
            green = bc.convert({n = green, base = 10, from = 16})&lt;br /&gt;
            blue = bc.convert({n = blue, base = 10, from = 16})&lt;br /&gt;
            return { red, green, blue }&lt;br /&gt;
        end,&lt;br /&gt;
        isInputFormat = function(args)&lt;br /&gt;
            local hexCharPattern = &amp;#039;^#%x%x?$&amp;#039;&lt;br /&gt;
            if ( args[3] ~= nil&lt;br /&gt;
                and string.match(args[1], hexCharPattern)&lt;br /&gt;
                and string.match(args[2], hexCharPattern)&lt;br /&gt;
                and string.match(args[3], hexCharPattern) ) then&lt;br /&gt;
                return true&lt;br /&gt;
            end&lt;br /&gt;
            return false&lt;br /&gt;
        end,&lt;br /&gt;
        display = function(self, separator)&lt;br /&gt;
            local red   = string.format(&amp;#039;&amp;amp;#35;%02X&amp;#039;, self[1])&lt;br /&gt;
            local green = string.format(&amp;#039;&amp;amp;#35;%02X&amp;#039;, self[2])&lt;br /&gt;
            local blue  = string.format(&amp;#039;&amp;amp;#35;%02X&amp;#039;, self[3])&lt;br /&gt;
            return Tuple.display({ red, green, blue }, separator)&lt;br /&gt;
        end,&lt;br /&gt;
        mapParametersFrom = {&lt;br /&gt;
            sRGB24bit = function( colourValue )&lt;br /&gt;
                return colourValue&lt;br /&gt;
            end,&lt;br /&gt;
        }, -- end of mapping functions&lt;br /&gt;
 &lt;br /&gt;
    },  -- info for sRGB24bitHex&lt;br /&gt;
&lt;br /&gt;
    sRGB24bit = {&lt;br /&gt;
        mapParametersFrom = {&lt;br /&gt;
            sRGB24bitHex = function( colourValue )&lt;br /&gt;
                return colourValue&lt;br /&gt;
            end,&lt;br /&gt;
        },  -- end of mapping functions&lt;br /&gt;
&lt;br /&gt;
    },  -- conversion info from sRGB24bitHex to sRGB24bit&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return me&lt;/div&gt;</summary>
		<author><name>imported&gt;Toohool</name></author>
	</entry>
</feed>