/** * Returns whether the given color is dark or light depending on the colors grey-scale level. * * @param rgb the color * @return <code>true</code> if the color is dark, <code>false</code> if it is light */ private static boolean isDark(RGB rgb) { return greyLevel(rgb) > 128; }
/** * Returns whether the given color is dark or light depending on the colors grey-scale level. * * @param rgb the color * @return <code>true</code> if the color is dark, <code>false</code> if it is light */ private static boolean isDark(RGB rgb) { return greyLevel(rgb) > 128; }