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 - OEWhiteand- OEBlackare returned as the first and second color by the- OEGetContrastColorsfunction.
 
Colors of maximum contrast¶
 
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.
See also