colorjs / color-space

Math & data behind color spaces and color conversions.

Home Page:http://colorjs.github.io/color-space

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conversion errors HWB -> RGB -> HWB

lifeiscontent opened this issue · comments

commented
  it('breaks', () => {
    const rgb = colorSpace.hwb.rgb([219, 31, 84]);
    const hwb = colorSpace.rgb.hwb(rgb);
    expect(hwb).toEqual([219, 31, 84]);
    // actual value is [0, 26.956521739130434, 73.04347826086956]
  });

Hm. Why was it closed?

commented

@dy because no one responded for 3 years. I give up.

It got lost, but it is important issue. Needs investigating.