color: add new method that returns color as a number in RGB space

Hi!

I am using you lib in environment which requires to have RGB colors as numbers.

I have a patch for this, but I would like to make my build process a bit simple