From: Marius Gedminas <marius@gedmin.as>
| ... | ... |
@@ -411,7 +411,8 @@ class XDotAttrParser: |
| 411 | 411 |
a = 1.0 |
| 412 | 412 |
return r, g, b, a |
| 413 | 413 |
elif c1.isdigit(): |
| 414 |
- h, s, v = map(float, c.split(","))
|
|
| 414 |
+ # "H,S,V" or "H S V" or "H, S, V" or any other variation |
|
| 415 |
+ h, s, v = map(float, c.replace(",", " ").split())
|
|
| 415 | 416 |
r, g, b = colorsys.hsv_to_rgb(h, s, v) |
| 416 | 417 |
a = 1.0 |
| 417 | 418 |
return r, g, b, a |