<?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/language/actionscript-3/tags/color</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 21 May 2013 14:11:37 GMT</pubDate>
<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 HSB Colour (Object) to RGB Colour (Object) - adrianparr</title>
<link>http://snipplr.com/view/48687/as3-hsb-colour-object-to-rgb-colour-object/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 Feb 2011 22:42:38 GMT</pubDate>
<guid>http://snipplr.com/view/48687/as3-hsb-colour-object-to-rgb-colour-object/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 RGB Colours (object) to HSB Colours (Object) - adrianparr</title>
<link>http://snipplr.com/view/48686/as3-rgb-colours-object-to-hsb-colours-object/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 Feb 2011 22:38:38 GMT</pubDate>
<guid>http://snipplr.com/view/48686/as3-rgb-colours-object-to-hsb-colours-object/</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>(ActionScript 3) AS3 Average Colour Between Two Colours - adrianparr</title>
<link>http://snipplr.com/view/48444/as3-average-colour-between-two-colours/</link>
<description><![CDATA[ <p>Full credit for this code goes to Scratchbrain (http://www.scratchbrain.net/blog/ver2/)</p> ]]></description>
<pubDate>Sat, 05 Feb 2011 03:07:50 GMT</pubDate>
<guid>http://snipplr.com/view/48444/as3-average-colour-between-two-colours/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Get Average Colour of an Image - adrianparr</title>
<link>http://snipplr.com/view/47871/as3-get-average-colour-of-an-image/</link>
<description><![CDATA[ <p>The docs for the Sekati SWC are here: http://docs.sekati.com/sekati/sekati/utils/ColorUtil.html   

Another useful blog post: http://blog.soulwire.co.uk/code/actionscript-3/extract-average-colours-from-bitmapdata</p> ]]></description>
<pubDate>Wed, 26 Jan 2011 02:58:02 GMT</pubDate>
<guid>http://snipplr.com/view/47871/as3-get-average-colour-of-an-image/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Setting Colour of DisplayObject using ColorTransform - adrianparr</title>
<link>http://snipplr.com/view/47558/as3-setting-colour-of-displayobject-using-colortransform/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 20 Jan 2011 03:35:43 GMT</pubDate>
<guid>http://snipplr.com/view/47558/as3-setting-colour-of-displayobject-using-colortransform/</guid>
</item>
<item>
<title>(ActionScript 3) AdjustColor Hue Saturation Brightness Contrast of a MovieClip - fxkill</title>
<link>http://snipplr.com/view/47485/adjustcolor-hue-saturation-brightness-contrast-of-a-movieclip/</link>
<description><![CDATA[ <p>This snippet is for when you need to adjust the colours of a display object on the fly using code. It's the equivalent of using the "Adjust Color" filter on a MovieClip.</p> ]]></description>
<pubDate>Wed, 19 Jan 2011 10:14:16 GMT</pubDate>
<guid>http://snipplr.com/view/47485/adjustcolor-hue-saturation-brightness-contrast-of-a-movieclip/</guid>
</item>
<item>
<title>(ActionScript 3) Color Const: grays, html colors, svg colors - mgeduld</title>
<link>http://snipplr.com/view/47477/color-const-grays-html-colors-svg-colors/</link>
<description><![CDATA[ <p>This is based on http://www.snipplr.com/view/46082/as3-html-color-keywords-colorname-class/

I found that link really useful, but it's more complex than I needed. I just wanted a simple list of consts. So I ran the above through a regexp and extracted the following code, adding the grays to it.

I also added the NO_COLOR const, which I sometimes find useful (and why I used ints intead of uints, which can't ever be negative). Color values are always positive numbers. There's no equivalent to null, because zero is a color (black). So NO_COLOR is my faux null.</p> ]]></description>
<pubDate>Wed, 19 Jan 2011 08:25:55 GMT</pubDate>
<guid>http://snipplr.com/view/47477/color-const-grays-html-colors-svg-colors/</guid>
</item>
<item>
<title>(ActionScript 3) MovieClip Color Change - shuchii</title>
<link>http://snipplr.com/view/46865/movieclip-color-change/</link>
<description><![CDATA[ <p>Changing the color of a MovieClip.</p> ]]></description>
<pubDate>Mon, 10 Jan 2011 22:02:26 GMT</pubDate>
<guid>http://snipplr.com/view/46865/movieclip-color-change/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 HTML Color Keywords (ColorName Class) - adrianparr</title>
<link>http://snipplr.com/view/46082/as3-html-color-keywords-colorname-class/</link>
<description><![CDATA[ <p>All credit for this class goes to Mark Walters (www.yourpalmark.com)

This class needs to be put in the package structure "com/yourpalmark/utils"</p> ]]></description>
<pubDate>Fri, 24 Dec 2010 04:28:50 GMT</pubDate>
<guid>http://snipplr.com/view/46082/as3-html-color-keywords-colorname-class/</guid>
</item>
<item>
<title>(ActionScript 3) Average color - hejaaa</title>
<link>http://snipplr.com/view/45366/average-color/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 07 Dec 2010 01:57:27 GMT</pubDate>
<guid>http://snipplr.com/view/45366/average-color/</guid>
</item>
<item>
<title>(ActionScript 3) color - darkbaron1912</title>
<link>http://snipplr.com/view/42905/color/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 25 Oct 2010 19:09:27 GMT</pubDate>
<guid>http://snipplr.com/view/42905/color/</guid>
</item>
<item>
<title>(ActionScript 3) get a random color - Empreintes</title>
<link>http://snipplr.com/view/42494/get-a-random-color/</link>
<description><![CDATA[ <p>return a random color</p> ]]></description>
<pubDate>Mon, 18 Oct 2010 23:19:56 GMT</pubDate>
<guid>http://snipplr.com/view/42494/get-a-random-color/</guid>
</item>
<item>
<title>(ActionScript 3) Randomly Colored Elastic Stripes - adamcoulombe</title>
<link>http://snipplr.com/view/37064/randomly-colored-elastic-stripes/</link>
<description><![CDATA[ <p>see demo at http://adamcoulombe.info/lab/as3/stripes.html.

This demonstrates the use of k-lib, Kuler API library for AS3. As well as Traer Physics for to handle the springiness.</p> ]]></description>
<pubDate>Sat, 10 Jul 2010 06:56:15 GMT</pubDate>
<guid>http://snipplr.com/view/37064/randomly-colored-elastic-stripes/</guid>
</item>
<item>
<title>(ActionScript 3) RGB, CMYK, HEX - forchid</title>
<link>http://snipplr.com/view/36037/rgb-cmyk-hex/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Jun 2010 09:50:25 GMT</pubDate>
<guid>http://snipplr.com/view/36037/rgb-cmyk-hex/</guid>
</item>
</channel>
</rss>