object_rgb function

Extract red, green and blue values from objects