/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-11-02 11:11:06 UTC
  • mfrom: (734.1.55 gtk3)
  • Revision ID: jelmer@samba.org-20111102111106-7l0vso8eg24dpf87
Merge gtk3 support from Curtis.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
 
17
__metaclass__ = type
 
18
 
17
19
import sys
18
20
 
19
 
class AnnotateColorMap(object):
 
21
 
 
22
class AnnotateColorMap:
20
23
 
21
24
    really_old_color = "#0046FF"
22
25
 
62
65
 
63
66
        return color
64
67
 
 
68
 
65
69
class AnnotateColorSaturation(AnnotateColorMap):
66
70
    def __init__(self, span=340.):
67
 
        AnnotateColorMap.__init__(self, span)
 
71
        super(AnnotateColorSaturation, self).__init__(span)
68
72
        self.current_angle = 0
69
73
 
70
74
    def hue(self, angle):