Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public static int getRandomColor(final boolean supportAlpha) {
* @param color The color.
* @return {@code true}: yes<br>{@code false}: no
*/
public boolean isLightColor(@ColorInt int color) {
public static boolean isLightColor(@ColorInt int color) {
return 0.299 * Color.red(color) + 0.587 * Color.green(color) + 0.114 * Color.blue(color) >= 127.5;
}
}