compose-color-picker
compose-color-picker copied to clipboard
Code can be greatly simplified by using new HSV support in Jetpack
Google has added HSV support to Color. https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#hsv(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.Rgb)
All of the conversions to SRGB are built in to Color.
I don't see a function to convert from Color to HSV. The only thing that I see that can be simplified is HsvColor.toColor().