Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: space.lab.lch is not a function #54

Open
tschaub opened this issue Sep 15, 2023 · 1 comment
Open

TypeError: space.lab.lch is not a function #54

tschaub opened this issue Sep 15, 2023 · 1 comment

Comments

@tschaub
Copy link

tschaub commented Sep 15, 2023

The readme suggests that space.lab.lch is a function:

color-space/README.md

Lines 13 to 16 in 9687f77

import space from 'color-space';
//convert lab to lch
var result = space.lab.lch([80,50,60]);

However, running this throws TypeError: space.lab.lch is not a function.

Should this be space.lab.lchab instead?

@dy
Copy link
Member

dy commented Sep 15, 2023

You're right, that's lchab. But it needs certain rework - the list of spaces must be updated to at least include modern CSS spaces #51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants