DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:gource_analysis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tips:gource_analysis [2010-05-19 21:37] 79.85.106.47tips:gource_analysis [2010-05-20 15:53] (current) – some versions of gource need RGB hex colour to be in upper case 193.9.13.135
Line 33: Line 33:
 def RGBToHTMLColor(rgb_tuple): def RGBToHTMLColor(rgb_tuple):
     """ convert an (R, G, B) tuple to #RRGGBB """     """ convert an (R, G, B) tuple to #RRGGBB """
-    hexcolor = '#%02x%02x%02x' % rgb_tuple+    hexcolor = '#%02X%02X%02X' % rgb_tuple
     # that's it! '%02x' means zero-padded, 2-digit hex values     # that's it! '%02x' means zero-padded, 2-digit hex values
     return hexcolor     return hexcolor
tips/gource_analysis.1274297840.txt.gz · Last modified: 2010-05-19 21:37 by 79.85.106.47

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki