<?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/color</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 00:25:43 GMT</pubDate>
<item>
<title>(PHP) Photoshop overlay blending with opacity in PHP - laurikar</title>
<link>http://snipplr.com/view/70657/photoshop-overlay-blending-with-opacity-in-php/</link>
<description><![CDATA[ <p>This function mimics Photoshop overlay blending by accepting two RGB arrays, one which will be overlayed and one which will overlay. Opacity is optional.</p> ]]></description>
<pubDate>Thu, 04 Apr 2013 21:48:50 GMT</pubDate>
<guid>http://snipplr.com/view/70657/photoshop-overlay-blending-with-opacity-in-php/</guid>
</item>
<item>
<title>(CSS) CSS3 Link Color Transition Effect - bmayzure</title>
<link>http://snipplr.com/view/69644/css3-link-color-transition-effect/</link>
<description><![CDATA[ <p>A simple CSS3 link-color transition effect. Fades from the base color to the active/focus color and back on rollover. A nice little added effect that's pretty well cross browser. Works with Webkit (Chrome/Safari/etc), Opera, Gecko (Firefox/Seamonkey/etc), and IE 10. Degrades nicely for unsupported browsers.</p> ]]></description>
<pubDate>Fri, 25 Jan 2013 10:21:22 GMT</pubDate>
<guid>http://snipplr.com/view/69644/css3-link-color-transition-effect/</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>(SAS) Using Alternating Background Color with PROC REPORT - webonomic</title>
<link>http://snipplr.com/view/68058/using-alternating-background-color-with-proc-report/</link>
<description><![CDATA[ <p>Adding alternating row of color to make proc report output easier to read.</p> ]]></description>
<pubDate>Fri, 02 Nov 2012 02:33:20 GMT</pubDate>
<guid>http://snipplr.com/view/68058/using-alternating-background-color-with-proc-report/</guid>
</item>
<item>
<title>(PHP) Get the dominant color of any image. - o0110o</title>
<link>http://snipplr.com/view/67946/get-the-dominant-color-of-any-image/</link>
<description><![CDATA[ <p>Point the script to an image and get its dominant color.</p> ]]></description>
<pubDate>Fri, 26 Oct 2012 01:29:34 GMT</pubDate>
<guid>http://snipplr.com/view/67946/get-the-dominant-color-of-any-image/</guid>
</item>
<item>
<title>(XML) color.xml - ximiboy</title>
<link>http://snipplr.com/view/67941/colorxml/</link>
<description><![CDATA[ <p>Fichero color.xml</p> ]]></description>
<pubDate>Thu, 25 Oct 2012 21:02:22 GMT</pubDate>
<guid>http://snipplr.com/view/67941/colorxml/</guid>
</item>
<item>
<title>(SAS) Specify colors in SAS statistical graphics procedures - webonomic</title>
<link>http://snipplr.com/view/67903/specify-colors-in-sas-statistical-graphics-procedures/</link>
<description><![CDATA[ <p>If you want to see some of the color names that SAS recognizes, run the following statements, which will print a list of colors to the SAS log:</p> ]]></description>
<pubDate>Wed, 24 Oct 2012 06:53:06 GMT</pubDate>
<guid>http://snipplr.com/view/67903/specify-colors-in-sas-statistical-graphics-procedures/</guid>
</item>
<item>
<title>(CSS) CSS - Reset all colors and change link color - satie83</title>
<link>http://snipplr.com/view/66659/css--reset-all-colors-and-change-link-color/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 12 Aug 2012 10:07:35 GMT</pubDate>
<guid>http://snipplr.com/view/66659/css--reset-all-colors-and-change-link-color/</guid>
</item>
<item>
<title>(Regular Expression) Hexadecimal color regex match - guilhermehn</title>
<link>http://snipplr.com/view/65915/hexadecimal-color-regex-match/</link>
<description><![CDATA[ <p>Regex code to match hexadecimal colors</p> ]]></description>
<pubDate>Tue, 03 Jul 2012 07:04:53 GMT</pubDate>
<guid>http://snipplr.com/view/65915/hexadecimal-color-regex-match/</guid>
</item>
<item>
<title>(PHP) Random color hex - pruntrut</title>
<link>http://snipplr.com/view/65039/random-color-hex/</link>
<description><![CDATA[ <p>Random color hex</p> ]]></description>
<pubDate>Wed, 23 May 2012 21:09:38 GMT</pubDate>
<guid>http://snipplr.com/view/65039/random-color-hex/</guid>
</item>
<item>
<title>(Objective C) Macro to use HEX color - Gretzki</title>
<link>http://snipplr.com/view/64892/macro-to-use-hex-color/</link>
<description><![CDATA[ <p>OBJC macro to use HEX color values to init UIColor objects</p> ]]></description>
<pubDate>Wed, 16 May 2012 20:54:41 GMT</pubDate>
<guid>http://snipplr.com/view/64892/macro-to-use-hex-color/</guid>
</item>
<item>
<title>(PHP) Hex to RGB - FMalk</title>
<link>http://snipplr.com/view/63823/hex-to-rgb/</link>
<description><![CDATA[ <p>Converts a hex string (FFFFFF) to a RGB array (255, 255, 255)</p> ]]></description>
<pubDate>Fri, 09 Mar 2012 22:17:06 GMT</pubDate>
<guid>http://snipplr.com/view/63823/hex-to-rgb/</guid>
</item>
<item>
<title>(CSS) change scrollbar color using css - satinfo30</title>
<link>http://snipplr.com/view/63792/change-scrollbar-color-using-css/</link>
<description><![CDATA[ <p>this code is used to change the scroll bar color change</p> ]]></description>
<pubDate>Wed, 07 Mar 2012 17:19:47 GMT</pubDate>
<guid>http://snipplr.com/view/63792/change-scrollbar-color-using-css/</guid>
</item>
<item>
<title>(Python) python terminal colour printing (termcolor) - Glycerine</title>
<link>http://snipplr.com/view/63508/python-terminal-colour-printing-termcolor/</link>
<description><![CDATA[ <p>Quick method for creating coloured tty in python terminal using 'termcolor'

$ pip install termcolor;</p> ]]></description>
<pubDate>Wed, 22 Feb 2012 22:24:48 GMT</pubDate>
<guid>http://snipplr.com/view/63508/python-terminal-colour-printing-termcolor/</guid>
</item>
<item>
<title>(Ruby) Extract most common colors from an image - kellishaver</title>
<link>http://snipplr.com/view/62442/extract-most-common-colors-from-an-image/</link>
<description><![CDATA[ <p>Takes an image (path or url) and extracts the 7 most common colors and returns their hex values.</p> ]]></description>
<pubDate>Tue, 10 Jan 2012 10:27:12 GMT</pubDate>
<guid>http://snipplr.com/view/62442/extract-most-common-colors-from-an-image/</guid>
</item>
<item>
<title>(jQuery) Custom selection color - schmizpeter</title>
<link>http://snipplr.com/view/61817/custom-selection-color/</link>
<description><![CDATA[ <p>Little snippet, which helps to use custom colored selections.
All you need is to setup the right style and use this snippet!</p> ]]></description>
<pubDate>Sun, 11 Dec 2011 22:25:01 GMT</pubDate>
<guid>http://snipplr.com/view/61817/custom-selection-color/</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>(PHP) php color-scheme viewer - DanielFGray</title>
<link>http://snipplr.com/view/60373/php-colorscheme-viewer/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 31 Oct 2011 16:41:52 GMT</pubDate>
<guid>http://snipplr.com/view/60373/php-colorscheme-viewer/</guid>
</item>
<item>
<title>(PHP) CSS minifier and color replaces - FatFolderDesigner</title>
<link>http://snipplr.com/view/58764/css-minifier-and-color-replaces/</link>
<description><![CDATA[ <p>With this file you can load stylesheets and minify the code while changing colors. The stylesheets are loaded using file_get_contents and you can attach them one after another if you have multiple sheets. The colors are replaces based on a variable thats commented out of the css code, an example of the way thats formatted is below the cod block. The minification is done with a regular expression that removes all comments, line breaks, and un-needed spaces. The color replacement is done with a different regular expression and the colorize function that takes the variable and returns a color. You can use whatever method you want to get the color, but I personally am using variables from a Wordpress plugin (and stores using the Wordpress options function) to give users color customizability of their site.

If you have any questions or comments you can post a comment here or at the link, there is also a more in depth explanation at the link if your interested.

UPDATE: improved it's ability to find colors in the CSS declaration, also added the "transparent" keyword in as something it can find.</p> ]]></description>
<pubDate>Sun, 18 Sep 2011 06:40:30 GMT</pubDate>
<guid>http://snipplr.com/view/58764/css-minifier-and-color-replaces/</guid>
</item>
<item>
<title>(jQuery) jQ contrast - headloose</title>
<link>http://snipplr.com/view/57875/jq-contrast/</link>
<description><![CDATA[ <p>a jQuery function to set a class depending on whether it is high or low contrast</p> ]]></description>
<pubDate>Tue, 16 Aug 2011 23:31:04 GMT</pubDate>
<guid>http://snipplr.com/view/57875/jq-contrast/</guid>
</item>
</channel>
</rss>