44
submitted 6 months ago by Paradox to c/programming@beehaw.org
top 9 comments
sorted by: hot top controversial new old
[-] theComposer@beehaw.org 8 points 6 months ago

๐ŸŒ๐Ÿ‘จโ€๐Ÿš€๐Ÿ”ซ๐Ÿ‘จโ€๐Ÿš€

Always has been.

[-] luciole@beehaw.org 7 points 6 months ago

We're definitely lightyears away from that cursed era of building layouts with float.

[-] flying_sheep@lemmy.ml 4 points 6 months ago

Finally there's a way to have gradients that don't look like shit.

Defining them to interpolate in a suitable color space instead of the completely inappropriate sRGB is great!

[-] 1984@lemmy.today 3 points 6 months ago
[-] robinm@programming.dev 2 points 6 months ago

This new OKLCH color space looks really nice to use. It's surprising that it's really human readable, I wouldn't have guessed that you could do it for random colors.

I'm a bit surprised. Why does OKLAB gradiant looks better than OKLCH?

[-] Paradox 2 points 6 months ago

They can both model any color equally well, it's just oklch works even closer to how we perceive colors changing. LAB and all derivatives are in Cartesian space, with luminance, a, and b being the defining axises. Luminance is self explanatory, but a and b are just axises of how much red/green and blue/yellow there is. It can be difficult to think of a color in how much blue it is, for example, when the color is something like nearly pure red. They both affect the hue output, so varying one can create strange, unintuitive colors

LCH works in polar space, like a color wheel. L is still luminance, c is the "colorfulness" and h is the hue. H and C let you set the same values a and b would, but in a more human way. We're used to thinking about colors changing independent of how much of a color there is, and that's what LCH does. Vary only the h and you get very different colors. Vary only the c and you get the same color but in different amounts of saturation, from full color to no color

[-] robinm@programming.dev 1 points 6 months ago

Would encoding images in oklch before compressing them using jppeg or whatever is used for video compression helps to have much better dark while still keeping current compression ratio?

[-] Paradox 2 points 6 months ago

No. You'd use something like rev.2020 or some other wide gamut color space. Jxr already supports this, and some programs, like the Xbox, take hdr screenshots as jxr

[-] mojo@lemm.ee 1 points 6 months ago

It didn't change

this post was submitted on 30 Oct 2023
44 points (100.0% liked)

Programming

13231 readers
29 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 11 months ago
MODERATORS