RGBAColorPicker

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

A composable function that creates a color picker UI for selecting RGB-A colors. This component contain 3 sliders for adjusting the red, green, and blue values of the color and another slider to adjust the alpha value. By adjusting these values, consumer can select or generate your desired color.

Return

@Composable: A color picker UI for selecting RGB-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.