HSLAColorPicker

fun HSLAColorPicker(modifier: Modifier = Modifier, lastSelectedColor: Color = Color.White, onColorSelected: (selectedColor: Color) -> Unit)

A composable function that creates a color picker UI for selecting HSL-A properties to get color. This component contain one color spectrum, that consumer can drag and select their color. Using the other three sliders, consumer can change the selected color's saturation, lightness and alpha values. By adjusting these values, consumer can select or generate their desired color.

Return

@Composable: A color picker UI for selecting HSL-A colors.

Parameters

modifier

: Modifier: The modifier to apply to this layout.

lastSelectedColor

: Color: variable to pass last selected color.

onColorSelected

: (selectedColor: Color) -> Unit: Callback to invoke when a color is selected.