Live data from Hacker News

How much oranger do red orange bags make oranges look?

alexanderell.is

81–90 of 109 posts

Re: How much oranger do red orange bags make oranges look?

#83
post #78
post #40

Warning, always convert your colors to from sRGB to Linear RGB before doing any math on them, then convert them back to sRGB afterwards for displaying them. sRGB is the familiar color space you all know and love, it's what your display uses, and it's what has those RGB numbers between 0 and 255. But it's not a linear color space. First think of values as being between 0 and 1 instead of 0 and 255. To change sRGB to L…

> The actual method of conversion involves a complicated curve that isn't continuous Isn't continuous? Really? That seems surprising to me; tell me more.

it's complicated for appropriate values of complicated.

more specifically it's defined piecewise and the standard then rounds some constants in the definition, which results in a slight discontinuity around the transition from one piece to the other.

https://en.wikipedia.org/wiki/SRGB#Deriving_the_transfer_fun...

Re: How much oranger do red orange bags make oranges look?

#86
post #41
post #40

Warning, always convert your colors to from sRGB to Linear RGB before doing any math on them, then convert them back to sRGB afterwards for displaying them. sRGB is the familiar color space you all know and love, it's what your display uses, and it's what has those RGB numbers between 0 and 255. But it's not a linear color space. First think of values as being between 0 and 1 instead of 0 and 255. To change sRGB to L…

Even better, convert to HSL or CieLAB. RGB is not at all how our eyes see things.

Pretty flawed also really.

Basically, anyone that paints knows that the more colours are mixed, the more they tend to brown. Yet because of that misunderstanding in the 1960s in Caltech, in CS more colors = white.

Crazy stuff. A great example of technical debt in systems design where we have all this jazz like sRGB, HSL, HSV, etc, trying to reset that basic mistake in physics from 60 years ago.

Re: How much oranger do red orange bags make oranges look?

#87
post #41

Earlier quoted context omitted.

Even better, convert to HSL or CieLAB. RGB is not at all how our eyes see things.

Pretty flawed also really. Basically, anyone that paints knows that the more colours are mixed, the more they tend to brown. Yet because of that misunderstanding in the 1960s in Caltech, in CS more colors = white. Crazy stuff. A great example of technical debt in systems design where we have all this jazz like sRGB, HSL, HSV, etc, trying to reset that basic mistake in physics from 60 years ago.

Additive vs substractive approach to color Displays use the former, so it is natural this is mirrored in software.

Re: How much oranger do red orange bags make oranges look?

#88
post #41

Earlier quoted context omitted.

Even better, convert to HSL or CieLAB. RGB is not at all how our eyes see things.

Pretty flawed also really. Basically, anyone that paints knows that the more colours are mixed, the more they tend to brown. Yet because of that misunderstanding in the 1960s in Caltech, in CS more colors = white. Crazy stuff. A great example of technical debt in systems design where we have all this jazz like sRGB, HSL, HSV, etc, trying to reset that basic mistake in physics from 60 years ago.

There's been no mistakes here. Additive mixing is the most intuitive way to represent color, just add primaries. Mixing paint is super complicated!

Re: How much oranger do red orange bags make oranges look?

#89
post #78
post #40

Warning, always convert your colors to from sRGB to Linear RGB before doing any math on them, then convert them back to sRGB afterwards for displaying them. sRGB is the familiar color space you all know and love, it's what your display uses, and it's what has those RGB numbers between 0 and 255. But it's not a linear color space. First think of values as being between 0 and 1 instead of 0 and 255. To change sRGB to L…

> The actual method of conversion involves a complicated curve that isn't continuous Isn't continuous? Really? That seems surprising to me; tell me more.

It's an implementation detail. In theory, it should be continuous.

Re: How much oranger do red orange bags make oranges look?

#90

I'm of the belief that fruit and vegetable packaging is often designed to hide defects, and to make it harder to visually discern how fresh the produce is (on top of not letting you touch it). Some examples. Red netting on oranges makes it hard to see imperfections on the skin. Green netting does the same for avocados. Costco sells corn in trays that are cling wrapped with a wrap that is unmistakably designed to hide…

Supermarkets also sometimes play with the light around the vegetables. Some areas have so much red in the light that you better take the items to a different area to be able to see if they are yellow or orange.
Post reply on HN