- From: Jacob Rus via GitHub <sysbot+gh@w3.org>
- Date: Wed, 05 Feb 2020 20:32:54 +0000
- To: public-css-archive@w3.org
> What about a gradient from 0 to 180? Or 180° to 0°? Pick either way, doesn’t really matter. People should not generally be making a single gradient segment close to this wide, except for a toy tech demo. > continuous color range from 0..360°, which is not an unusual thing to want It is not a common thing to want in any practical use on a website or infographic or map ... It might be desirable in someone’s toy tech demo? But trying to do this in terms of CIELAB LCh coordinates is generally going to lead to poor results, because the gamut is not big enough to accommodate all hues to the same chroma, so what you’ll end up with is a bunch of artifacts where the gamut clipping boundaries were found. To get decent looking results you’ll want to pick the chroma of intermediate waypoints to avoid clipping. > HSL HSL (a) leads to horrible results in basically all contexts, so is a poor inspiration for anything, because (b) it is one of the simplest possible ways of squishing a cube to fit inside a cylinder, without any reference to human perception, only geometric convenience. The result of that is that the cylinder is the gamut, so if you interpolate between any two points in cylindrical coordinates you will remain in the gamut. > If you don't clamp the values, you don't have to do either of these. Yes, but what you will get is extreme confusion and lots of poor results. -- GitHub Notification of comment by jrus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4703#issuecomment-582598908 using your GitHub account
Received on Wednesday, 5 February 2020 20:32:55 UTC