Color Comparison Algorithm

Wrote an algorithm that allows the machine to tell the difference
between colors based on ratios of the RGB values.