/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to annotate/colormap.py

  • Committer: Jelmer Vernooij
  • Date: 2011-04-06 14:00:46 UTC
  • mfrom: (727 trunk)
  • mto: This revision was merged to the branch mainline in revision 731.
  • Revision ID: jelmer@samba.org-20110406140046-xa42a1ce8a5bgq7p
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import sys
18
18
 
19
 
class AnnotateColorMap:
 
19
class AnnotateColorMap(object):
20
20
 
21
21
    really_old_color = "#0046FF"
22
22
 
89
89
 
90
90
    def saturate_v(self, saturation, hv):
91
91
        return int(255 - (saturation/3*(1-hv)))
92
 
    
 
92
 
93
93
    def committer_angle(self, committer):
94
94
        return float(abs(hash(committer))) / sys.maxint * 360.0
95
95