adds algo for color length: red as shortest, green as median, and blue as farthest