Adjacent Files

Project Info

. > app > src > main > java > james > alarmio > utils >


Type: public static boolean

Determine if a color is dark or not, using some magic numbers.

Parameter Name Description
color A color int to determine the luminance of.

Returned Value: True if the color should be considered “light”.

Reference: this confusing wikipedia article