Changeset 3647:c78ec6430072 in livinglogic.python.xist

Show
Ignore:
Timestamp:
12/26/08 17:33:18 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Fix fromhsv() and fromhls().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/color.py

    r3646 r3647  
    9696        """ 
    9797        rgb = colorsys.hsv_to_rgb(h % 1.0, max(0., min(s, 1.)), max(0., min(v, 1.))) 
    98         return cls.fromrgba(*(rgb + (a,))) 
     98        return cls.fromrgb(*(rgb + (a,))) 
    9999 
    100100    @classmethod 
     
    107107        """ 
    108108        rgb = colorsys.hls_to_rgb(h % 1.0, max(0., min(l, 1.)), max(0., min(s, 1.))) 
    109         return cls.fromrgba(*(rgb + (a,))) 
     109        return cls.fromrgb(*(rgb + (a,))) 
    110110 
    111111    def __repr__(self):