【发布时间】:2020-04-12 13:18:33
【问题描述】:
我需要在 Python 中调整我的 kivy 应用程序的颜色 这就是我现在拥有的 有人可以帮帮我吗?
<MainScreen>:
name: "main"
Color:
rgba: self.r,1,1,1
【问题讨论】:
我需要在 Python 中调整我的 kivy 应用程序的颜色 这就是我现在拥有的 有人可以帮帮我吗?
<MainScreen>:
name: "main"
Color:
rgba: self.r,1,1,1
【问题讨论】:
你可以这样做:
<MainScreen>:
canvas:
Color:
rgba: 1, .3, .8, .5
Rectangle:
size: root.size
用这种格式255/255, 184/255, 255/255, 255/255 的颜色替换这个1, .3, .8, .5。
最后一个是 alpha。
如果不需要 alpha,则需要使用 rgb 并删除最后一个值。
谢谢。
【讨论】: