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

This site may do shady things with cookies and stuff because it's evil. Please don't read my privacy policy. close