All Projects → skydoves → Multi Colorpicker

skydoves / Multi Colorpicker

Licence: apache-2.0
Android multi colorpicker for getting colors from any images by tapping on the desired color.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Multi Colorpicker

colorpicker
pure Angular.JS circle color-picker similar to google keep's color picker
Stars: ✭ 23 (-80%)
Mutual labels:  colorpicker
Sorted Colors
A tool to sort the named CSS colors in a way that it shows related colors together
Stars: ✭ 167 (+45.22%)
Mutual labels:  colorpicker
Kallewheel
A custom color wheel extension for Adobe Photoshop
Stars: ✭ 16 (-86.09%)
Mutual labels:  colorpicker
UnityColorPicker
A standalone color picker asset for Unity
Stars: ✭ 70 (-39.13%)
Mutual labels:  colorpicker
Farge
Click on a pixel on your screen and show its color value
Stars: ✭ 307 (+166.96%)
Mutual labels:  colorpicker
Vanilla Colorful
A tiny color picker custom element for modern web apps (2.7 KB) 🎨
Stars: ✭ 467 (+306.09%)
Mutual labels:  colorpicker
global-color-picker
start the script and click anywhere to get rgb value at the cursor location
Stars: ✭ 31 (-73.04%)
Mutual labels:  colorpicker
Amcolorpicker
AMColorPicker can select color by three ways.
Stars: ✭ 57 (-50.43%)
Mutual labels:  colorpicker
Pickr
🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
Stars: ✭ 3,759 (+3168.7%)
Mutual labels:  colorpicker
Colorpicker
A mininal but complete colorpicker desktop app
Stars: ✭ 766 (+566.09%)
Mutual labels:  colorpicker
Egorozh.ColorPicker
🎨🎨🎨 Best of the best ColorPicker on WPF and AvaloniaUI
Stars: ✭ 39 (-66.09%)
Mutual labels:  colorpicker
Material Community Components
🐼 Angular Material Components created from the community
Stars: ✭ 280 (+143.48%)
Mutual labels:  colorpicker
Androidpicker
安卓选择器类库,包括日期及时间选择器(可用于出生日期、营业时间等)、单项选择器(可用于性别、民族、职业、学历、星座等)、二三级联动选择器(可用于车牌号、基金定投日期等)、城市地址选择器(分省级、地市级及区县级)、数字选择器(可用于年龄、身高、体重、温度等)、日历选日期择器(可用于酒店及机票预定日期)、颜色选择器、文件及目录选择器、图片选择器等……WheelPicker/DatePicker/TimePicker/OptionPicker/NumberPicker/LinkagePicker/AddressPicker/CarPlatePicker/CalendarPicker/ColorPicker/FilePicker/ImagePicker etc.
Stars: ✭ 5,320 (+4526.09%)
Mutual labels:  colorpicker
codemirror-colorpicker
colorpicker with codemirror
Stars: ✭ 113 (-1.74%)
Mutual labels:  colorpicker
Colorbrewer
🌈 Create color blind friendly color palettes in Java
Stars: ✭ 29 (-74.78%)
Mutual labels:  colorpicker
ColorPickView
🐾一个自定义的颜色选择view
Stars: ✭ 19 (-83.48%)
Mutual labels:  colorpicker
Colorpickerpreference
🎨 A library that lets you implement ColorPicker, ColorPickerDialog, ColorPickerPreference.
Stars: ✭ 407 (+253.91%)
Mutual labels:  colorpicker
Bootstrap Colorpicker
Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
Stars: ✭ 1,351 (+1074.78%)
Mutual labels:  colorpicker
Colorpickerview
🎨 Android colorpicker for getting colors from any images by tapping on the desired color.
Stars: ✭ 1,042 (+806.09%)
Mutual labels:  colorpicker
Colorpicker
A highly customizable color picker for Android
Stars: ✭ 644 (+460%)
Mutual labels:  colorpicker

Multi-ColorPicker

API License
You can get colors from your gallery pictures or custom images just using touch with multi-selectors.

gif0

Examples

gif1 example2-2

Including in your project

build.gradle

repositories {
    mavenCentral() // or jcenter() works as well
}

dependencies {
    implementation "com.github.skydoves:multicolorpicker:1.0.8"
}

or Maven

<dependency>
  <groupId>com.github.skydoves</groupId>
  <artifactId>multicolorpicker</artifactId>
  <version>1.0.8</version>
</dependency>

How to use

You can use like using just ImageView and you can get colors from any images.

Add XML Namespace

First add below XML Namespace inside your XML layout file.

xmlns:app="http://schemas.android.com/apk/res-auto"

ColorPickerView in layout

<com.skydoves.multicolorpicker.MultiColorPickerView
        android:id="@+id/multiColorPickerView"
        android:layout_width="300dp"
        android:layout_height="300dp"
        app:palette="@drawable/palette"/>

Attribute in xml

app:palette="@drawable/palette" // set palette image

get Colors from Listener

multiColorPickerView.addSelector(selectorDrawable, new ColorListener() {
            @Override
            public void onColorSelected(ColorEnvelope envelope) {
                int color = envelope.getColor();
                int[] rgb = envelope.getRgb();
                String htmlCode = envelope.getHtmlCode();

                // TODO
            }
        });

MultiColorPickerView Methods

Methods Return Description
addSelector(Drawable drawable, ColorListener listener) Selector adds a Selector and returning it
setPaletteDrawable(Drawable drawable) void changes palette's drawable
getMixedColor(Float ratio(0~1)) void returns mixed color from selectors seleted color
setSelectedAlpha(Float ratio(0~1) void sets active selector's alpha
getSelectorsSize() int returns selectors size
setFlagView(FlagView flagView) void sets a FlagView on colorpicker
setFlagMode(FlagMode flagmode) void sets FlagMode(Always, Last, None)
setFlagFlipable(boolean flipable) void sets flag's flip-able when flag go over top boundary

Selector Methods

Methods Return Description
getX() int returns selector's X axis
getY() int returns selector's Y axis
getColor() int returns the selector's selected color
getColorHtml() String returns the selector's selected color html code
getColorRGB() int[3] returns the selector's selected color rgb array
onMove(int x, int y) void moves the selector's point
onMoveCenter() void moves the selector's point to center
onSelect() void selects point at selector's position (used with onMove())
onSelect(int x, int y) void moves and selects point

License

Copyright 2017 skydoves

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].