OEGetContrastColors

OEIterBase<OEColor> *OEGetContrastColors(bool whiteblack=false)

Returns the iterator over colors of maximum contrast depicted in Figure: Colors of maximum contrast.

whiteblack

If true, then OEWhite and OEBlack are returned as the first and second color by the OEGetContrastColors function.

../../_images/OEGetContrastColors.png

Colors of maximum contrast

../../_images/OEGetContrastColors_BW.png

Colors of maximum contrast with white and black

The 22 colors depicted in Figure: Colors of maximum contrast with white and black are called Kelly’s colors. The order of colors in Kelly’s list is designed to maximize contrast between colors in a set. The first nine colors (white, black, yellow, purple, orange, light blue, red, buff, grey) are selected to be discriminating even for people with color vision deficiency.