Add functions to convert location to RGB