You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One thing that might be nice, from an aesthetic and teaching point of view, would be for functions like hue_slice to draw the pure black and pure white at the top and bottom of the plot. I think this would help people who are learning the munsell system. I see that these values are not included in munsell.map and so would have to be appended to the draw list manually.
On a related note, if one happens to ask for munsell colors using a vector of colors which includes value = 0 or value = 10 a warning is issued. Two different kinds of uses that produce different errors resulting from this are:
The error comes from in_gamut, I think when it looks up values in munsell.map there is a logic check which eliminates value = 10 since it is not in munsell.map and then the lengths are not as expected.
It would be a slightly nicer user experience if this condition was trapped and just a message issues, or it could be silently fixed.
The text was updated successfully, but these errors were encountered:
Good suggestions. The easiest way to solve the first was to include definitions for all hues at all values with chroma = 0. Then without any changes to the plotting code, hue_silce displays the grey scale (including white and black) on the right.
This also fixes the second point you make.
The new definitions are have the usual "N ?/?" names so you can't look up them up. I.e mnsl("5B 10/0") doesn't work. However you can fix them to get the right name (and hex code), i.e.
One thing that might be nice, from an aesthetic and teaching point of view, would be for functions like
hue_slice
to draw the pure black and pure white at the top and bottom of the plot. I think this would help people who are learning the munsell system. I see that these values are not included inmunsell.map
and so would have to be appended to the draw list manually.On a related note, if one happens to ask for munsell colors using a vector of colors which includes
value = 0
orvalue = 10
a warning is issued. Two different kinds of uses that produce different errors resulting from this are:The error comes from
in_gamut
, I think when it looks up values inmunsell.map
there is a logic check which eliminatesvalue = 10
since it is not inmunsell.map
and then the lengths are not as expected.It would be a slightly nicer user experience if this condition was trapped and just a message issues, or it could be silently fixed.
The text was updated successfully, but these errors were encountered: