Code Monkey home page Code Monkey logo

kellyc-color-picker's People

Contributors

nc22 avatar pvrpccc avatar smankusors avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kellyc-color-picker's Issues

No issue just a simple question

Thank you very much for this great color picker. Because I am just a noob in html, css and js I don't know how to get the current color showed. Like as example in the picture, how do I get the selected color showed under the text? And at the same time change the text "Select a Color" in a Hex format like "#dcdcdc"
Capture7
Sorry for the noob question. Like you, English not my native language but I guess it's better to ask than to fiddling a long time without any luck. Any way thanks again.

Licensing

The color-picker is a fine little tool and it would be nice if you could license it. This way I anyone could use your code without the fear of legal issues. I would recommend the MIT license wich gives the user almost all rights.

Get color code output

image
how can i get that color code in code

where can i find the fuction of that label that change color

Missing alpha channel

This color picker seems great, except missing option for transparency, would be possible to add a transparency slider?

More than one colorpicker ?

I need more than one color picker on the same page, with only one active at the time. However, each new picker sets the color to all the previous ones at the same time.

Maybe an example will be more understandable: Click on a and select a color for a, then press b and select a color for b : it will assign the same color to a and b.

<input id="a" onclick="edit(event)" value="#ff0000">
<input id="b" onclick="edit(event)" value="#ffff00">
<canvas id="canvas"></canvas>
<script src="lib/html5kellycolorpicker.min.js"></script>
<script>
edit = (event)=>{
	var k = new KellyColorPicker({ 
		place : 'canvas',    
		input : event.target,  
		color : event.target.innerHTML,
		userEvents : { change : function(self) {
			if(self.getCurColorHsv().v < 0.5)
				self.getInput().style.color = "#FFF";
			else
				self.getInput().style.color = "#000";
			self.getInput().style.background = self.getCurColorHex();   
		}
	}});
}
</script>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.