add backwards calculation to determine xy position from color value