Parent Directory
|
Revision Log
|
Patch
revision 526 by jonathan, Wed Mar 12 19:17:49 2003 UTC | revision 610 by jonathan, Fri Apr 4 13:56:59 2003 UTC | |
---|---|---|
# | Line 43 def parse_color(color): | Line 43 def parse_color(color): |
43 | """ | """ |
44 | color = string.strip(color) | color = string.strip(color) |
45 | if color == "None": | if color == "None": |
46 | result = Color.None | result = Color.Transparent |
47 | elif color[0] == '#': | elif color[0] == '#': |
48 | if len(color) == 7: | if len(color) == 7: |
49 | r = string.atoi(color[1:3], 16) / 255.0 | r = string.atoi(color[1:3], 16) / 255.0 |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |