{"repo":"skydoves/colorpicker-compose","free":true,"listed":false,"github":"https://github.com/skydoves/colorpicker-compose","clone":"git clone https://github.com/skydoves/colorpicker-compose.git","description":"🎨 Kotlin Multiplatform color picker library for getting colors from any images by tapping on the desired color.","language":"Kotlin","stars":757,"topics":["android","jetpack-compose","compose","color-picker","colorpicker","skydoves"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"🎨 Kotlin Multiplatform color picker library that allows you to get colors from any images like gallery pictures by tapping on the desired color. Also, it ships with alpha, brightness, hue, and saturation sliders to adjust ARGB and HSV factors, plus gesture lifecycle callbacks for fine-grained interaction handling. Preview Download Version Catalog If you're using Version Catalog, you can configure the dependency by adding it to your libs.versions.toml file as follows: Gradle Add the dependency below to your module 's build.gradle.kts file: For Kotlin Multiplatform, add the dependency below to your module 's build.gradle.kts file: Kotlin Multiplatform Support Maps Platform Support :--------------------------: :-------: Android ✅ Desktop ✅ iOSArm64/iosSimulatorArm64 ✅ macosArm64 ✅ js/WasmJs ✅ Usage First, you should initialize ColorPickerController , which allows you to control color pickers and all subcomponents. Next, you can implement a color picker with the ImageColorPicker composable function. ImageColorPicker ImageColorPicker allows you to get colors from any images such as gallery pictures or drawable resources by tapping on the desired color. It interacts with the ColorPickerController to control the color picker and other components. You can use the ImageColorPicker as the following example: With the modernstorage's Photo Picker, you can set a desired image as the palette like the below: As you can see the above, you can set the palette with the setPaletteImageBitmap f","default_branch":null,"files":null,"tree":[],"storefront":"/r/skydoves","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/skydoves/colorpicker-compose/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}