first attempt at mapping color index to rgb