-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Ummm... This is a really clever solution, except if you have a hex value 
> that you need to convert into an rgb array, it is probably a string, not 
> an integer literal. Is there an easy way to convert a hex string 
> directly into an integer literal?

Gimme a good and old blue RGB:

>> "101aff".scan(/../).map {|color| color.to_i(16)}
=> [16, 26, 255]

- --
EustŠ“uio "TaQ" Rangel
http://eustaquiorangel.com

"Imagination is more important than knowledge."
A. Einstein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFHT+z+b6UiZnhJiLsRAtBSAJ40zsi0V1+QERk8OkZaCwWsUDQ2OwCaAzsf
7UvsRM3F0ILHZH+Wzj4ylSM=
=s76P
-----END PGP SIGNATURE-----