-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
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
ColorInt extensions #174
Comments
Don't you think this would create overlap with AndroidX Core KTX |
Right, such extensions should really add value. inline fun Int.alpha(alpha: Double): Int {
require(alpha in 0.0..1.0)
return ColorUtils.setAlphaComponent(this, (alpha * 0xFF).toInt())
}
with this:
Obviously KTX provides everything needed for getters, we have |
Would be nice to get some things similar to these and/or these :)
The text was updated successfully, but these errors were encountered: