This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.graphics.Color; | |
import android.support.annotation.ColorInt; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Size; | |
public class ColorUtil { | |
public static @ColorInt int lighten(@ColorInt int color, float value) { | |
float[] hsl = colorToHSL(color); | |
hsl[2] += value / 100; |