convert rgba color codes 255,255,255,255 to kivy color codes in 1,1,1,1
I think you can just divide it by 255:
float_color = color / 255.0
Though this doesnt really answer the question, but another simple way is using kivy's hex feature , an example in kv lang:
#:import hex kivy.utils.get_color_from_hex
canvas:
Color:
rgba: hex('#03A9F4')
To avoid some divisions and speed up:
http://www.corecoding.com/utilities/rgb-or-hex-to-float.php