hsl Questions
24
Solved
I am looking for an algorithm to convert between HSL color to RGB.
It seems to me that HSL is not very widely used so I am not having much luck searching for a converter.
9
Solved
How do I convert HSB color to HSL?
Photoshop shows HSB color in its color picker. HSB color cannot be used in CSS, but HSL can.
I tried this JS:
function hsb2hsl(h, s, b) {
return {
h: h,
s: s,
...
Wesley asked 6/8, 2010 at 11:14
1
Just checked this website http://www.workwithcolor.com/hsl-color-schemer-01.htm and I am curious how to get those numbers in Lum(luminance)? I can not find a proper formula online to get those resu...
Kerato asked 4/2, 2019 at 12:37
2
Solved
I read in colored jpg images using readJPEG() from the jpeg package. Now I have my images as three-dimensional arrays (width, height, channels) in R.
I want to convert these image arrays into the H...
3
Solved
I'm trying to emulate Photoshop's "Color Overlay" using CSS filters, and while doing so, found out the CSS filters operate on colors as consistently as an epileptic seizure.
Consider the color #FF...
Tragopan asked 6/4, 2015 at 20:46
5
Solved
9
Solved
I'm looking at a document that describes the standard colors used in dentistry to describe the color of a tooth. They quote hue, value, chroma values, and indicate they are from the 1905 Munsell de...
Asuncion asked 1/9, 2010 at 17:34
1
Solved
I want to have a basic HSL color value which I want to implement as a gradient as follows:
:root {
--hue: 201;
--saturation: 31;
--lightness: 40;
--mainColor: hsl(var(--hue),var(--saturation),...
Hyperbaric asked 28/12, 2020 at 13:26
2
Solved
Today I encountered some code when digging in the Ghost code. I'm trying to create the same styling in my React app after extracting data from the API.
I found this:
:root {
/* Colours */
--blue:...
6
Does anyone know how adjustment layers work in Photoshop? I need to generate a result image having a source image and HSL values from Hue/Saturation adjustment layer. Conversion to RGB and then mul...
Nevillenevin asked 10/12, 2010 at 0:17
7
Solved
Does anyone know a PHP function (for >5.3) which can convert an HSL color to either RGB or Hex? I've tried a dozen Google searches and none of the functions I have found work as expected.
It doesn...
1
Solved
Given a certain color in HSL (let's say hsl(74,64%,59%)), I want to calculate what darker shade (with the same h and s values) gives me enough contrast to satisfy W3C color contrast requirements.
...
4
Solved
I found this RGB to HSL script over at http://www.mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript. I can't find any other small decent ones. The iss...
Dianoia asked 27/2, 2010 at 19:17
4
Solved
I'm creating a Color Picker tool and for the HSL slider, I need to be able to convert RGB to HSL. When I searched SO for a way to do the conversion, I found this question HSL to RGB color conversio...
Sorry asked 24/8, 2016 at 8:45
1
Strange thing that I discovered. When converting #579f2f to hsl, I arrive at hsl(99, 54%, 40%);. When converting this back to hex I get #559d2f. I used various online tools to test this.
I guess t...
7
Assuming an element is at 100% saturation, opacity, etc... how can I have its background become slightly lighter when it is hovered?
The use case is that I'm allowing a user to hover over any elem...
1
Solved
There is a project that im working on which required the color white detection, after some research i decided to use covert RGB image to HSL image and thresh hold the lightness to get the color whi...
Autoerotism asked 10/1, 2018 at 8:3
3
Solved
By reading HSL/HSV color theory, I get the impression that hue component is a cyclical attribute that repeats every 360 degrees and can be changed independently of saturation and lightness/value. C...
Kannan asked 4/10, 2013 at 18:5
1
Solved
Hello I'm trying to create HEX to HSL converter function. I know that at first I should convert HEX to RGB and then from RGB to HSL. I've done so using some script from StackOverflow. S and L...
Gilolo asked 26/9, 2017 at 17:15
1
Solved
Based on this question, which has a fabulous answer for values from 0..1, I tried to modify the function to include the min and max values.
function getColor(value, min, max){
var hue=((max-(valu...
Schiller asked 18/10, 2016 at 14:18
4
Solved
Is it possible to change, with the CSS Filter methods like HueRotate, Saturation, and Brightness, the color of a PNG drawn totally white? Like Photoshop's color overlay effect, but in CSS.
This wo...
3
Solved
I want to be able to determine if a browser supports HSL colours, if not then I want to fall back on generated RGB colours (i have both generated). Is there any way to do that without actually chec...
Smaltite asked 29/12, 2010 at 14:40
6
Solved
I've had a look at the ColorSpace class, and found the constant TYPE_HLS (which presumably is just HSL in a different order).
Can I use this constant to create a Color from hue, saturation, and lu...
Amaryl asked 8/6, 2010 at 13:24
3
Solved
I would like to generate a canvas image using gradients in some clever way. I would like the image to looks something like this:
I just can't get my head around it. I need to generate lines in t...
Rigobertorigor asked 15/11, 2013 at 9:41
2
Solved
I was trying a simple demo where I gave colors to elements in hsl. From all my experience I know that 0(ZERO) in CSS is unitless. If you want to specify 0 as a value, you may leave the unit.
This ...
Modestia asked 9/10, 2015 at 9:30
1 Next >
© 2022 - 2024 — McMap. All rights reserved.