/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-03-14 20:12:19 UTC
  • Revision ID: jelmer@samba.org-20110314201219-wo692nzwywu6mevh
Fix formatting, imports.

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