hsl

how to use HSL in Asp.net [closed]

半世苍凉 提交于 2019-11-26 08:24:55
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . What tools are used for working with HSL colors in .net? 回答1: The color struct provides three methods: GetHue, GetSaturation and

Why doesn't this Javascript RGB to HSL code work?

末鹿安然 提交于 2019-11-26 07:45:33
问题 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 issue is that this code doesn\'t even really work. Would anybody know why? (I don\'t know a bit of color math, but maybe it\'s returning the complementary?) function rgbToHsl(r, g, b){ r /= 255, g /= 255, b /= 255; var max = Math.max(r, g, b), min = Math.min(r, g, b); var h, s, l = (max + min) / 2; if

HSL to RGB color conversion [closed]

冷暖自知 提交于 2019-11-25 22:06:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am looking for a tool or the 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. 回答1: Garry Tan posted a Javascript solution on his blog (which he attributes to a now defunct mjijackson.com, but is archived here