选择能很好地转换为灰度的颜色
如果我设计的自动对焦工具必须对打印文档进行良好的“屏幕截图”,我是否可以轻松选择即使以灰度打印时看起来也不同的颜色?
编辑:我希望有一些易于使用的调色板或工具,但已经给出的输入肯定非常有洞察力
If I'm designing af tool that must "screenshot" well for printed documentation, can I easily choose colors that look different even when printed in greyscale?
EDIT: I was hoping for some easy-to-use palette or tool, but the inputs given already is very insightfull for sure
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的。您最好的选择是选择具有高相对对比度的颜色。坦率地说,对您来说,一开始就以灰度设计 UI 可能是最简单的。基本上,您需要选择比周围颜色浅或深的颜色。
Yes. Your best choice would be to choose colors that have a high level of relative contrast. Frankly, it might even be easiest for you to design your UI in greyscale in the first place. Basically, you're going to want to choose colors that are either lighter or darker than the colors around them by a decent amount.
您可以根据 RGB 值计算亮度:
并确保所选颜色的 Y 值尽可能均匀分布。
You could calculate the luminance from the RGB values:
And make sure your Y values for your selected colors are as distributed as evenly as possible.