Does Kivy language support hex color values such as
#F05F40
Thanks very much in advance!
Kivy has utils
module with get_color_from_hex function that do job:
#:import utils kivy.utils
<Widget>:
canvas.before:
Color:
rgb: utils.get_color_from_hex('#F05F40')
Rectangle:
pos: self.pos
size: self.size
Note, that you should import module in kvlang.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With