def foreground(background, *options):
def absdiff(a, b):<EOL><INDENT>return brightnessdiff(a, b)<EOL><DEDENT>diffs = [(absdiff(background, color), color) for color in options]<EOL>diffs.sort(reverse=True)<EOL>return diffs[<NUM_LIT:0>][<NUM_LIT:1>]<EOL>
Find the best foreground color from `options` based on `background`
       color.