BCU_makeLegible( color )

Determine whether black or white is the most legible choice for your background color.

Use BCU_computeLuminance( color ) to get the lumiinance of any color.

A color's luminance is defined by this equation Y = 0.30 R + 0.59 G + 0.11 B

Use BCU_invertColor( color ) to get the complement of any color.

Example: The complement of #006699 is #FFFFFF - #006699 = #FF9966

Use BCU_threeToSix( color ) to convert a three character color representation ( #03C ) to a six character representation ( #0033CC ).

Example #1: BCU_threeToSix("#03C") =

Example #2: You must pass a color string consisting of # and three color values, #000

BCU_threeToSix("#0033CC") =
Use BCU_sixToThree( color ) to convert a six character representation ( #0033CC ) to a three character color representation ( #03C ).

Example: BCU_sixToThree("#0033CC") =