There was an error while loading. Please reload this page.
1 parent 27cf719 commit be7c7c2Copy full SHA for be7c7c2
lib/utilcode/src/main/java/com/blankj/utilcode/util/ColorUtils.java
@@ -211,7 +211,7 @@ public static int getRandomColor(final boolean supportAlpha) {
211
* @param color The color.
212
* @return {@code true}: yes<br>{@code false}: no
213
*/
214
- public boolean isLightColor(@ColorInt int color) {
+ public static boolean isLightColor(@ColorInt int color) {
215
return 0.299 * Color.red(color) + 0.587 * Color.green(color) + 0.114 * Color.blue(color) >= 127.5;
216
}
217
0 commit comments