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
distinguishable_colors for ColorAlpha? #250
Comments
I'm not even sure what it would mean to have the alpha channel participate in any notion of distinguishability---if you draw a transparent red on top of itself several times, it becomes more red, and consequently isn't very distinguishable from full red. So adding the alpha after running the opaque version of the algorithm seems to make sense, and at the moment I can't see any justification for those receiving different alpha values from one another. If they are different, which values do you assign to the newly-generated colorants? |
What is they in this context? I'm starting to doubt that I would need to call |
they = the different alpha values in the seed-vector that you pass into |
Ah, I see what you mean. Assign the alpha values to the new color most resembling the color they belong to in the seed-vector? |
To me, that sounds like behavior that the user won't be able to predict without a careful read of the documentation. On balance I think I prefer the MethodError, as I just don't think it makes much sense to talk about distinguishability in the context of an alpha channel. Can't you call |
The |
I'd be fine with an informative error message. |
Is that the best behavior though? You want to use some RGBA values in your plot and Gadfly errors out and tells you that you can't give alpha values? That seems a bit strict. |
Note: I'm changing what I'm saying here from the OP. I don't think we should make any changes to |
Right, I'm saying handle RGBA from the Gadfly side, since there's no obviously correct behavior in general. It would be fine to define a |
xref: PR #439 |
I'm trying to fix a bug in Gadfly (GiovineItalia/Gadfly.jl#844) and one of things I'm running into is the lack of a
distinguishable_colors
for theColorAlpha
type:Would it enough to store the transparency values, run
distinguishable_colors
and add the transparency values back in?The text was updated successfully, but these errors were encountered: