We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Explained in the title
The text was updated successfully, but these errors were encountered:
Could be easily done by adding the following lines to the LFXHSBColor class:
LFXHSBColor
public static LFXHSBColor fromColor(@ColorInt int color, @IntRange(from = 0, to = 10000) int kelvin) { float[] hsb = new float[3]; Color.colorToHSV(color, hsb); return getColor(hsb[0], hsb[1], hsb[2], kelvin); } public static LFXHSBColor fromRGB(@IntRange(from = 0, to = 255) int red, @IntRange(from = 0, to = 255) int green, @IntRange(from = 0, to = 255) int blue, @IntRange(from = 0, to = 10000) int kelvin) { int color = Color.rgb(red, green, blue); return fromColor(color, kelvin); }
Sorry, something went wrong.
No branches or pull requests
Explained in the title
The text was updated successfully, but these errors were encountered: