Isaac Muse

Results 654 comments of Isaac Muse

I use Mermaid to create a color space mapping, you can control the output more than you think: https://facelessuser.github.io/coloraide/colors/#color-space-map. With that said, using something else is fine too.

You can't explicitly control what distance a block is from another, but you can control the direction in a positive or negative way. See the source. https://github.com/facelessuser/coloraide/blob/main/docs/src/markdown/colors/index.md#color-space-map

I do want to rephrase things slightly, it is not exactly the same. While some values do evaluate the same, what is being done is very different. I guess currently,...

> These two functions are experimental and preliminary, and undocumented because that was a first cut (and seen as unsatisfactory). Yep, this is what I was guessing. Doing some more...

This is because color.js is still gamut mapping, by default, with CIE LCh. So, we convert `oklch(35% .5 310)` over to `lch(-5.2 288 325)` and then gamut map it. We...

> i hand authored all the colors, nothing came from browser clipping? i'm just comparing visually, that i expected a yellow to stay yellow and a purple to stay purple....

@argyleink, then let me ask, how are you coming to your calculated result? I expressed earlier I thought you were clipping based on your values.

Yeah, keep in mind that clipping does not preserve...well anything. It simply truncates the values. The fact that you got something you think makes more sense does not necessarily mean...

For reference, the first example in this article shows how bad clipping is in the context of an image: https://bottosson.github.io/posts/gamutclipping/ This demonstrates roughly what `oklch.c` is doing: https://bottosson.github.io/posts/gamutclipping/#keep-lightness-constant%2C-only-compress-chroma. Honestly, it...

>I don't think method: "oklch.c" is actually working as expected (i.e. just reducing chroma till the color is in gamut - correct me if my expectation is wrong) > >...