color-picker
convert Hsl to rgb and hex
New approach (inspired by @Kamil-KieĹ‚czewski solution) Takes degree, percentage, percentage and returns css hex color: function hslToHex(h, s, l) { l /= 100; const a = s * Math.min(l, 1 – l) / 100; const f = n => { const k = (n + h / 30) % 12; const color = l – … Read more
how to bring the vscode css color picker feature into js file with string that match color name format?
I found colorize which can highlight JavaScript and TypeScript (among others) GitHub In your settings.json in VSCode just add languages you’d like to target: “colorize.languages”: [“typescript”, “javascript”, “css”, “scss”]
Simple swift color picker popover (iOS)
Here’s one I made which is as simple as it gets. It’s just a lightweight UIView that allows you to specify the element size in case you want blocked regions (elementSize > 1). It draws itself in interface builder so you can set element size and see the consequences. Just set one of your views … Read more
jQuery UI Color Picker [closed]
You can find some demos and plugins here. http://jqueryui.pbworks.com/ColorPicker
Webkit CSS to control the box around the color in an input[type=color]?
WebKit has special CSS selectors you can use to customize form controls but they aren’t official. An update to WebKit in the future will probably break it. Please don’t use it for production!! But feel free to play with it for personal projects 🙂 Method 1 Uses webkit-specific selectors to mostly hide the non-colored part … Read more
JavaScript eyedropper (tell color of pixel under mouse cursor)
It’s not possible with JavaScript as it goes against cross-domain security. It would be very bad if you knew what pixels made up the image, http://some-other-host/yourPassword.png. You can only tell the color of the pixel under the mouse if either the mouse is over a canvas or an image element of the same domain (or … Read more
How to automatically generate N “distinct” colors?
This questions appears in quite a few SO discussions: Algorithm For Generating Unique Colors Generate unique colours Generate distinctly different RGB colors in graphs How to generate n different colors for any natural number n? Different solutions are proposed, but none are optimal. Luckily, science comes to the rescue Arbitrary N Colour displays for categorical … Read more
Color picker utility (color pipette) in Ubuntu [closed]
I recommend GPick: sudo apt-get install gpick Applications -> Graphics -> GPick It has many more features than gcolor2 but is still extremely simple to use: click on one of the hex swatches, move your mouse around the screen over the colours you want to pick, then press the Space bar to add to your … Read more