/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: Aaron Bentley
  • Date: 2007-08-16 14:31:02 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070816143102-27yzfhdgdv3ggo6e
Fix hue selection to use author in gannotate

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
    def get_color(self, revision, now):
96
96
        days = self._days(revision, now)
97
97
        saturation = 255/((days/50) + 1)
98
 
        hue = self.hue(self.committer_angle(revision.committer))
 
98
        hue = self.hue(self.committer_angle(revision.properties.get('author',
 
99
                                            revision.committer)))
99
100
        color = tuple([self.saturate_v(saturation, h) for h in hue])
100
101
        return "#%x%x%x" % color