/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 colormap.py

  • Committer: Aaron Bentley
  • Date: 2006-03-20 14:06:29 UTC
  • mto: This revision was merged to the branch mainline in revision 49.
  • Revision ID: abentley@panoramicfeedback.com-20060320140629-3c2b38038965430a
Made saturation decrease more gradually

Show diffs side-by-side

added added

removed removed

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