如何在不触摸颜色本身的情况下解决颜色透明度/不透明度? V5
例如,我有这些颜色变量:
Color1 = #334455FF
Color2 = #33445588
唯一的区别是不透明度/透明度组件。我们只能在不触摸RGB Comps的情况下仅解决此组件吗?例如(即兴明显的语法概念):
Color1 = #334455FF
Color2 = @Color1, opacity=50
我认为V4中有一些相似的功能……(我只是在那个时代不在这里。)
For example I have these color variables:
Color1 = #334455FF
Color2 = #33445588
The only difference is the opacity/transparency component. Can we address this component only, without touching the RGB comps.? For example (improvised obvious syntax concept):
Color1 = #334455FF
Color2 = @Color1, opacity=50
I think there was some similar function in V4 … (I just wasn't here in that era.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信您正在寻找
color.t()
函数。编辑:
您可以使用
color.r()
,color.g()
,color.b()
函数以获取R, g,b颜色的成分。然后使用color.rgb()
函数来创建新颜色。I believe you are looking for the
color.t()
function.Edit:
You can use the
color.r()
,color.g()
,color.b()
functions to get the r, g, b components of a color. Then use thecolor.rgb()
function to create a new color.