UIColor预览工具?

发布于 2024-09-30 15:22:44 字数 190 浏览 0 评论 0原文

说我有

UIColor *blue = [UIColor colorWithRed:0.65 green:1.0 blue:1.0 alpha:0.8];

没有任何在线工具可以用来预览这个值,这样我就可以找到我想要的颜色。我不确定这些小数叫什么。它不是 RGB 或十六进制,所以我不知道它是什么..

Say I have

UIColor *blue = [UIColor colorWithRed:0.65 green:1.0 blue:1.0 alpha:0.8];

Is there any online tool I can use to preview this values, so I can find what color I want exactly. Im not sure what these decimals are called. Its not RGB or hexadecimal so I dont know what it is..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

分分钟 2024-10-07 15:22:44

是RGB。由于范围是 0 到 1,因此您需要将前三个分量乘以 255,得到 (166, 255, 255),alpha(不透明度)为 80%。

您可以尝试 http://jsbin.com/ilowi​​5/3 在支持的浏览器中显示这些 UIColor RGBA(例如 Firefox 和 Chrome)。

It is RGB. Since the range is 0 to 1, you need to multiply by 255 to the first three components to get (166, 255, 255) with an alpha (opacity) of 80%.

You could try http://jsbin.com/ilowi5/3 which displays those UIColor in a browser that supports RGBA (e.g. Firefox and Chrome).

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