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

Handling multiple colour formats #20

Open
mjwalter opened this issue Dec 27, 2016 · 0 comments
Open

Handling multiple colour formats #20

mjwalter opened this issue Dec 27, 2016 · 0 comments

Comments

@mjwalter
Copy link
Member

Currently, MEIMassaging only recognizes colors in the format #000000. However, the MEI guidelines allow for a number of formats, which may be used by the sibmei plugin.

The Python package colour supports multiple formats in a simple way, using a data structure that allows for equivalence checking, so that, for example, Color(rgb=(1, 0, 0)) == Color("#ff0000"). Unfortunately, this package is not included with Python installations.

Other means of recognizing different color formats – and making sure that different ways of representing the same color are treated as equivalent – would be welcome as well.

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

1 participant