compose-color-picker icon indicating copy to clipboard operation
compose-color-picker copied to clipboard

Code can be greatly simplified by using new HSV support in Jetpack

Open jonsmirl opened this issue 2 years ago • 1 comments

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.

jonsmirl avatar May 08 '23 12:05 jonsmirl

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().

sproctor avatar Feb 04 '24 22:02 sproctor