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

view: multiple colours #41

Open
wezm opened this issue Oct 25, 2024 · 0 comments · May be fixed by #42
Open

view: multiple colours #41

wezm opened this issue Oct 25, 2024 · 0 comments · May be fixed by #42

Comments

@wezm
Copy link
Contributor

wezm commented Oct 25, 2024

New thoughts on how color could be used.... If the following is too complicated and deserves its own issue, say the word!

It would be helpful in some cases to specify a sequence/vector of color values for foreground, where each color value in order is mapped to the corresponding glyph image in the output. The use case I'm envisioning is that each output glyph has its own color, so it's again easy to tell that (for example) a ligature did or did not form.

Instances where the difference is small and hard to detect in a solid-black image are fairly common. There might also be occasions where overlapping glyphs make it impossible to tell (like a small diacritic plonked onto the body of the base glyph).

I think that discrete color lists would suffice; gradients and other things that plotting libraries offer don't seem like they'd apply. But there are perhaps questions that would need answering, like whether spaces or invisible/ignorables count and whether cycling through the list if there are more glyphs than colors is the only option or some other strategy would be useful to someone.

Originally posted by @n8willis in #27 (comment)

@wezm wezm linked a pull request Oct 25, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant