Commit ·
1b56e19
1
Parent(s): d6e9825
finish colorpicker fix
Browse files
app.py
CHANGED
|
@@ -12,9 +12,7 @@ def check_rgba(string:str):
|
|
| 12 |
else:
|
| 13 |
clean_str_list = string.split("(")[1].split(")")[0].split(",")
|
| 14 |
clean_list = [float(value.strip()) / 255 if idx != 3 else float(value.strip()) / 1 for idx, value in enumerate(clean_str_list)]
|
| 15 |
-
print(clean_list)
|
| 16 |
hex = to_hex(clean_list, keep_alpha=True)
|
| 17 |
-
print(hex)
|
| 18 |
return hex
|
| 19 |
|
| 20 |
def extract_waveform_animation(audio_file, window_seconds, waveform_color, background_color):
|
|
|
|
| 12 |
else:
|
| 13 |
clean_str_list = string.split("(")[1].split(")")[0].split(",")
|
| 14 |
clean_list = [float(value.strip()) / 255 if idx != 3 else float(value.strip()) / 1 for idx, value in enumerate(clean_str_list)]
|
|
|
|
| 15 |
hex = to_hex(clean_list, keep_alpha=True)
|
|
|
|
| 16 |
return hex
|
| 17 |
|
| 18 |
def extract_waveform_animation(audio_file, window_seconds, waveform_color, background_color):
|