You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-13Lines changed: 18 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,8 @@ Compose enables users to choose from HSL, HSV or RGB color models to pick Solid
5
5
With colorful Sliders, panels, hex and color displays and various elements to create customized
6
6
pickers based on preference.
7
7
8
-
There are 10(for now) different color pickers and 3 different color+gradient pickers available
9
-
to choose from to use as Composables or inside dialogs that are available in demos.
10
-
11
-
8
+
There are 10(for now) different color pickers and 3 different color+gradient pickers available to
9
+
choose from to use as Composables or inside dialogs that are available in demos.
12
10
13
11
Inspired
14
12
by [mchome's flutter_colorpicker for Flutter](https://github.com/mchome/flutter_colorpicker)
@@ -46,8 +44,10 @@ ColorPickerRingRectHSL(
46
44
)
47
45
```
48
46
49
-
ColorPicker with `SelectorRingHue` hue selector and `SelectorRectSaturationLightnessHSL` saturation lightness Selector that uses [HSL](https://en.wikipedia.org/wiki/HSL_and_HSV) color model as base.
50
-
This color picker has tabs section that can be changed between HSL, HSV and RGB color models and color can be set using `CompositeSliderPanel` which contains sliders for each color models.
47
+
ColorPicker with `SelectorRingHue` hue selector and `SelectorRectSaturationLightnessHSL` saturation
48
+
lightness Selector that uses [HSL](https://en.wikipedia.org/wiki/HSL_and_HSV) color model as base.
49
+
This color picker has tabs section that can be changed between HSL, HSV and RGB color models and
50
+
color can be set using `CompositeSliderPanel` which contains sliders for each color models.
51
51
52
52
***initialColor** color that is passed to this picker initially.
53
53
***ringOuterRadiusFraction** outer radius of `SelectorRingHue`.
@@ -56,9 +56,11 @@ ColorPicker with `SelectorRingHue` hue selector and `SelectorRectSaturationLight
56
56
***ringBorderStrokeColor** stroke color for drawing borders around inner or outer radius.
57
57
***ringBorderStrokeWidth** stroke width of borders.
58
58
***selectionRadius radius** of white and black circle selector.
59
-
***onColorChange** callback that is triggered when `Color` is changed using `SelectorRingHue``SelectorDiamondSaturationLightnessHSL` or `CompositeSliderPanel`
59
+
***onColorChange** callback that is triggered when `Color` is changed
60
+
using `SelectorRingHue``SelectorDiamondSaturationLightnessHSL` or `CompositeSliderPanel`
60
61
61
62
#### Implementation for other Color Pickers
63
+
62
64
```
63
65
ColorPickerCircleValueHSV(
64
66
modifier: Modifier = Modifier,
@@ -67,6 +69,7 @@ ColorPickerCircleValueHSV(
67
69
onColorChange: (Color) -> Unit
68
70
)
69
71
```
72
+
70
73
***selectionRadius radius** of white and black circle selector.
71
74
***initialColor** color that is passed to this picker initially.
72
75
***onColorChange** callback that is triggered when `Color` is changed
0 commit comments