Vue component to pick a color from a base64 image, by clicking on it

Overview

vue-img-color-picker

Vue component to pick a color from a base64 image, by clicking on it.

You can access the selected color by $refs.colorPicker.color, or from the $emit event "setColor". See Examples below.

Options:

ref: to access the color by $refs

width: width of the displayed image (apect ratio will be respected)

showColor: display selected color in a box at top right

initColor: if you need to pre define a selected color

imagesrc: the base64 encoded image (urls are not accepted because of cross origin problems)

">
<img-color-picker
  ref="colorPicker"
  :width="400"
  :showColor="true"
  @setColor="setColor"
  :initColor="userColor"
  imagesrc="data:image/png;base64,...">
img-color-picker>

setColor event handler in parent component:

setColor (color){
  console.log(color);
},
You might also like...
🎨  Lightweight color picker for Vue 3
🎨 Lightweight color picker for Vue 3

🎨 Lightweight color picker for Vue 3

(vue3.0) 🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more
(vue3.0) 🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more

🎨 Vue Color Pickers for Sketch, Photoshop, Chrome & more

Lightweight color shader/blender/converter plugin implemented for Vue 2.
Lightweight color shader/blender/converter plugin implemented for Vue 2.

Vue Color Blender/Shader/Converter Lightweight color shader/blender/converter plugin implemented for Vue 2. Disclaimer The algoritmn used in this plug

A Nice Color Gradient Picker with Vue

Vue Color Gradient Picker Table of Contents Installation Examples Demos Installation To install, you can use npm or yarn: $ npm install vue-color-grad

⚡ A resistor color practice website develop by Vue.js
⚡ A resistor color practice website develop by Vue.js

ResiColor ⚡ A resistor color practice website develop by Vue.js ScreenShots Project setup $ yarn install Compiles and hot-reloads for development $ y

Vue Color Pickers for Sketch, Photoshop, Chrome & more
Vue Color Pickers for Sketch, Photoshop, Chrome & more

Vue Color Pickers for Sketch, Photoshop, Chrome & more

Color picker for vue using Tailwind v2
Color picker for vue using Tailwind v2

Vue Tailwind Color Picker Color picker for vue using Tailwind v2. Requires Tailwind Live demo Installation $ npm install vue-tailwind-color-picker $ y

Cordelia Vue - a VueJS plugin that allows you to add a rich color picker into your web pages

Color picker for web and mobile browsers. Vue plugin version of Cordelia Color Picker library.

Vue color picker

Vue color picker Iro color picker for Vue. Demo See demo here Install npm install vue-iro-color-picker --save Usage import ColorPicker from 'vue-iro-

Releases(v1.0.0)
Owner
Gecco Media GmbH
Gecco Media GmbH
:art: Vue Color Pickers for Sketch, Photoshop, Chrome & more http://vue-color.surge.sh

vue-color Color Pickers for Sketch, Photoshop, Chrome & more with Vue.js(vue2.0). Live demo Installation NPM $ npm install vue-color CommonJS var Phot

Don 2.4k Dec 29, 2022
Vue Color Picker using native input type color.

Lightweight color picker that uses the native HTML element input type color.

David Custódio 14 Sep 21, 2022
🎨 A natural color picker component for Vue.js

Color picker for Vue.js A Vue.js color picker component designed for humans. Installation npm i --save-dev vue-color-picker-board Browser Include the

Shlomi Nissan 11 Nov 24, 2022
🎨 A Color picker component. Built from the bottom to work with Vue.js.

Verte A Complete Vue.js Color Picker Component Features Multiple Color Models support: RGB, HSL, and HEX. SSR Friendly. Small file size, only 7kb gzip

Baianat 159 Dec 26, 2022
Accessible color picker component for Vue.js

vue-accessible-color-picker An accessible Vue.js color picker component. Links: demo npmjs.com/package/vue-accessible-color-picker on BundlePhobia git

Philipp Rudloff 69 Dec 28, 2022
A color picker vue component

A color picker vue component

Benny Schudel 0 Feb 8, 2021
Color picker Vue.js component

vue-colorpicker Color picker Vue.js component.

Jamena McInteer 3 Jul 13, 2018
A color input component for Vuetify.

VuetifyColorInput A color input component for Vuetify. demo Try it out! dependencies chroma.js setup npm npm i vuetify-color-input import VuetifyColor

Sergej Sintschilin 3 May 20, 2021
A Vue3.x based color picker component with gradient bar control.

a Vue3.x based color picker component. English | 中文 Features Supports 3 CSS background color modes: solid, linear-gradient and radial-gradient. Suppor

null 7 Dec 3, 2022
Radial Color Picker - Vue

Radial Color Picker - Vue Introduction Great UX starts with two basic principles - ease of use and simplicity. Selecting a color should be as easy as

Radial Color Picker 83 Dec 28, 2022