marquesafonso commited on
Commit
13e08a8
·
1 Parent(s): bd1da46

debug color picker 3

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def check_rgba(string:str):
14
  else:
15
  clean_str_list = string.split("(")[1].split(")")[0].split(",")
16
  print(clean_str_list)
17
- hex = rgba_to_hex(int(clean_str_list[0].strip()), int(clean_str_list[1].strip()), int(clean_str_list[2].strip()), int(clean_str_list[3].strip()))
18
  print(hex)
19
  return hex
20
 
 
14
  else:
15
  clean_str_list = string.split("(")[1].split(")")[0].split(",")
16
  print(clean_str_list)
17
+ hex = rgba_to_hex(float(clean_str_list[0].strip()), float(clean_str_list[1].strip()), float(clean_str_list[2].strip()), float(clean_str_list[3].strip()))
18
  print(hex)
19
  return hex
20