Color Palette
fun ColorPalette(color: Color, onColorChanged: (Color) -> Unit, modifier: Modifier = Modifier, rows: Int = 7, hueColumns: Int = 12, includeGrayColumn: Boolean = true, showPreview: Boolean = true, cornerRadius: Dp = 16.dp, indicatorRadius: Dp = 10.dp)
A color palette component that allows users to select colors from a grid of HSV values.
Parameters
color
The color to display in the palette.
on Color Changed
Callback invoked when the selected color changes.
modifier
Modifier for styling the palette.
rows
Number of rows in the color grid.
hue Columns
Number of columns for hue variations.
include Gray Column
Whether to include a gray column in the palette.
show Preview
Whether to show a preview of the selected color.
corner Radius
Corner radius for the palette's shape.
indicator Radius
Radius of the selection indicator circle.