选择能很好地转换为灰度的颜色

发布于 2024-08-25 03:57:30 字数 111 浏览 5 评论 0原文

如果我设计的自动对焦工具必须对打印文档进行良好的“屏幕截图”,我是否可以轻松选择即使以灰度打印时看起来也不同的颜色?

编辑:我希望有一些易于使用的调色板或工具,但已经给出的输入肯定非常有洞察力

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

回忆凄美了谁 2024-09-01 03:57:30

是的。您最好的选择是选择具有高相对对比度的颜色。坦率地说,对您来说,一开始就以灰度设计 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.

韬韬不绝 2024-09-01 03:57:30

您可以根据 RGB 值计算亮度:

Y = 0.2126 R + 0.7152 G + 0.0722 B

并确保所​​选颜色的 Y 值尽可能均匀分布。

You could calculate the luminance from the RGB values:

Y = 0.2126 R + 0.7152 G + 0.0722 B

And make sure your Y values for your selected colors are as distributed as evenly as possible.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文