harmony icon indicating copy to clipboard operation
harmony copied to clipboard

Reduce size by rounding floats

Open ai opened this issue 2 years ago • 2 comments

Now we are using 6 digits for L after the comma: 0.917969.

Isn’t it too much? I think we can round it to 2-3 digits, and we will not be able to see the difference.

ai avatar Nov 28 '23 11:11 ai

I wonder if there's a way to determine how much this would affect the perceived color space programatically?

nickserv avatar Mar 07 '24 11:03 nickserv

I too don't think one would see the difference between 0.917969 and 0.9180 but I don't see why we need to round it up either, especially when the palette is often loaded from either a node package or cdn.

For what it's worth, however, some references:

vnphanquang avatar Nov 28 '24 13:11 vnphanquang