# \[AS3\] Color Parser Class

**URL:** <https://forum.kirupa.com/t/as3-color-parser-class/219245>\
**Category:** open source\
**Created:** [March 15, 2007, 1:40am UTC](https://forum.kirupa.com/t/as3-color-parser-class/219245 "2007-03-15T01:40:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omegaxmk2](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/omegaxmk2/32/3262_2.png) [@omegaxmk2](https://forum.kirupa.com/u/omegaxmk2)\
**Post date:** [March 15, 2007, 1:40am UTC](https://forum.kirupa.com/t/as3-color-parser-class/219245/1 "2007-03-15T01:40:58Z")

</div>

A class with a static method that parses a good amount of the current W3C methods for representing colors, including: #RGB; #RRGGBB; rgb(r, g, b); rgb(r%, g%, b%); and the SVG color names (the list is [here](http://www.w3.org/TR/SVG/types.html#ColorKeywords)).

The file is a .txt (since .as aren’t allowed). Just rename the extension and the class will be ready for use.
