Grid Color Picker
fun GridColorPicker(modifier: Modifier = Modifier, lastSelectedColor: Color = Color.White, onColorSelected: (selectedColor: Color) -> Unit)
A composable function that creates a grid to select colors. This color grid is created with 16 predefined major colors and those color's 10 color variances.
Return
@Composable: A grid UI to select colors.
Parameters
modifier
: Modifier: The modifier to apply to this layout.
last Selected Color
: Color: variable to pass last selected color.
on Color Selected
: (selectedColor: Color) -> Unit: Callback to invoke when a color is selected.