map2RGB function

Map three vectors to RGB