<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/hex</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 01:37:51 GMT</pubDate>
<item>
<title>(PHP) Convert RGB to Hex - BILZEEE</title>
<link>http://snipplr.com/view/68652/convert-rgb-to-hex/</link>
<description><![CDATA[ <p>Small php function to convert RGB colors into Hex colors</p> ]]></description>
<pubDate>Tue, 20 Nov 2012 05:38:06 GMT</pubDate>
<guid>http://snipplr.com/view/68652/convert-rgb-to-hex/</guid>
</item>
<item>
<title>(PHP) Validate HTML Color (Both HEX &amp;amp; Named)| Regex - STaRDoGG</title>
<link>http://snipplr.com/view/68083/validate-html-color-both-hex--named-regex/</link>
<description><![CDATA[ <p>This function will take a HTML color as a string, and run it through some validation.

If $named (optional): is set to either 1 or TRUE it'll check if it was a named color first, otherwise itll first check for a valid Hex color that include thes hash (#) sign, and then will check for a valid Hex color that doesn't include the hash and add it to the color.

NOTE: If it fails anywhere along the validation, such as an invalid Hex color, no error notice is returned. You may want to add this in yourself, or perhaps return a default color, such as black, if it's needed for your use.</p> ]]></description>
<pubDate>Sat, 03 Nov 2012 04:12:49 GMT</pubDate>
<guid>http://snipplr.com/view/68083/validate-html-color-both-hex--named-regex/</guid>
</item>
<item>
<title>(C) Read hexadecimal argument from command line - vdevos</title>
<link>http://snipplr.com/view/63924/read-hexadecimal-argument-from-command-line/</link>
<description><![CDATA[ <p>This piece of code will read a hex argument such as: ff or ab from your command line and stores it as a integer</p> ]]></description>
<pubDate>Wed, 14 Mar 2012 21:21:34 GMT</pubDate>
<guid>http://snipplr.com/view/63924/read-hexadecimal-argument-from-command-line/</guid>
</item>
<item>
<title>(PHP) Convert rgb to hex - macodev</title>
<link>http://snipplr.com/view/62816/convert-rgb-to-hex/</link>
<description><![CDATA[ <p>Convert rgb color detected by jQuery into hex value.</p> ]]></description>
<pubDate>Fri, 27 Jan 2012 22:24:38 GMT</pubDate>
<guid>http://snipplr.com/view/62816/convert-rgb-to-hex/</guid>
</item>
<item>
<title>(JavaScript) get RGBA values as an object - claudiowebdesign</title>
<link>http://snipplr.com/view/60570/get-rgba-values-as-an-object/</link>
<description><![CDATA[ <p>this function gets a parameter like an hex color (es: "#ffffff"), an abbreviated hex color (es: "#fff"), an rgb color (es: "rgb(255,255,255)") or an rgba color (es: "rgba(255,255,255,1)"), and returns an object containing the rgba values, like { red:x, green:y, blue:z, alpha:k  }.</p> ]]></description>
<pubDate>Sun, 06 Nov 2011 05:13:03 GMT</pubDate>
<guid>http://snipplr.com/view/60570/get-rgba-values-as-an-object/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Decimal To Hex - adrianparr</title>
<link>http://snipplr.com/view/60387/as3-decimal-to-hex/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Nov 2011 04:22:10 GMT</pubDate>
<guid>http://snipplr.com/view/60387/as3-decimal-to-hex/</guid>
</item>
<item>
<title>(Java) Bytes to hex string - vss</title>
<link>http://snipplr.com/view/50684/bytes-to-hex-string/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 15 Mar 2011 19:20:23 GMT</pubDate>
<guid>http://snipplr.com/view/50684/bytes-to-hex-string/</guid>
</item>
<item>
<title>(PHP) PHP Random Color - ozke</title>
<link>http://snipplr.com/view/49455/php-random-color/</link>
<description><![CDATA[ <p>Ported to PHP from here:
http://snipplr.com/view/48067/ (original: http://paulirish.com/2009/random-hex-color-code-snippets/)</p> ]]></description>
<pubDate>Wed, 23 Feb 2011 03:27:35 GMT</pubDate>
<guid>http://snipplr.com/view/49455/php-random-color/</guid>
</item>
<item>
<title>(PHP) Longhand HEX colour to shorthand equivalent - Sverri</title>
<link>http://snipplr.com/view/49294/longhand-hex-colour-to-shorthand-equivalent/</link>
<description><![CDATA[ <p>Turn a HEX colour value into its 3 character equivalent.</p> ]]></description>
<pubDate>Sun, 20 Feb 2011 23:07:16 GMT</pubDate>
<guid>http://snipplr.com/view/49294/longhand-hex-colour-to-shorthand-equivalent/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 ColorUtil Class (inc. RGBtoCMYK, CMYKtoRGB, subtractive colour &amp;amp; addative colour) - adrianparr</title>
<link>http://snipplr.com/view/48689/as3-colorutil-class-inc-rgbtocmyk-cmyktorgb-subtractive-colour--addative-colour/</link>
<description><![CDATA[ <p>Full credit for this class goes to Deva Raj (@nsdevaraj). Many thanks.</p> ]]></description>
<pubDate>Wed, 09 Feb 2011 23:01:56 GMT</pubDate>
<guid>http://snipplr.com/view/48689/as3-colorutil-class-inc-rgbtocmyk-cmyktorgb-subtractive-colour--addative-colour/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Average Colour Between Two Colours (My version) - adrianparr</title>
<link>http://snipplr.com/view/48685/as3-average-colour-between-two-colours-my-version/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 Feb 2011 22:26:32 GMT</pubDate>
<guid>http://snipplr.com/view/48685/as3-average-colour-between-two-colours-my-version/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 CSS Colour (String) to RGB Colours (Object) - adrianparr</title>
<link>http://snipplr.com/view/48684/as3-css-colour-string-to-rgb-colours-object/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 Feb 2011 22:07:16 GMT</pubDate>
<guid>http://snipplr.com/view/48684/as3-css-colour-string-to-rgb-colours-object/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Hex Colour (uint) to RGB Colours (Object) - adrianparr</title>
<link>http://snipplr.com/view/48683/as3-hex-colour-uint-to-rgb-colours-object/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 Feb 2011 22:02:33 GMT</pubDate>
<guid>http://snipplr.com/view/48683/as3-hex-colour-uint-to-rgb-colours-object/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 RGB Colour to CSS Colour (String) - adrianparr</title>
<link>http://snipplr.com/view/48674/as3-rgb-colour-to-css-colour-string/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 Feb 2011 21:45:14 GMT</pubDate>
<guid>http://snipplr.com/view/48674/as3-rgb-colour-to-css-colour-string/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 RGB Colour to Hex Colour (uint) - adrianparr</title>
<link>http://snipplr.com/view/48672/as3-rgb-colour-to-hex-colour-uint/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 Feb 2011 21:41:33 GMT</pubDate>
<guid>http://snipplr.com/view/48672/as3-rgb-colour-to-hex-colour-uint/</guid>
</item>
<item>
<title>(Objective C) UIColor from Hex &amp;amp; Photoshop Values - andrewroycarter</title>
<link>http://snipplr.com/view/47551/uicolor-from-hex--photoshop-values/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 20 Jan 2011 02:23:30 GMT</pubDate>
<guid>http://snipplr.com/view/47551/uicolor-from-hex--photoshop-values/</guid>
</item>
<item>
<title>(JavaScript) Hex to RGB or RGBA transluder - madr</title>
<link>http://snipplr.com/view/43542/hex-to-rgb-or-rgba-transluder/</link>
<description><![CDATA[ <p>Transform a color given in hex to RGB. An optional opacity argument also enables RBGA.</p> ]]></description>
<pubDate>Thu, 04 Nov 2010 18:35:41 GMT</pubDate>
<guid>http://snipplr.com/view/43542/hex-to-rgb-or-rgba-transluder/</guid>
</item>
<item>
<title>(PHP) Matching hexadecimal color values - newsok</title>
<link>http://snipplr.com/view/42939/matching-hexadecimal-color-values/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 26 Oct 2010 03:39:06 GMT</pubDate>
<guid>http://snipplr.com/view/42939/matching-hexadecimal-color-values/</guid>
</item>
<item>
<title>(JavaScript) Convert Decimal to Hex - resting</title>
<link>http://snipplr.com/view/42449/convert-decimal-to-hex/</link>
<description><![CDATA[ <p>Taken online</p> ]]></description>
<pubDate>Sun, 17 Oct 2010 20:52:06 GMT</pubDate>
<guid>http://snipplr.com/view/42449/convert-decimal-to-hex/</guid>
</item>
<item>
<title>(ActionScript 3) Hex Validation - jfdesgagne</title>
<link>http://snipplr.com/view/40108/hex-validation/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 08 Sep 2010 05:01:21 GMT</pubDate>
<guid>http://snipplr.com/view/40108/hex-validation/</guid>
</item>
</channel>
</rss>