Changeset 3650:93b7e7ee6905 in livinglogic.python.xist

Show
Ignore:
Timestamp:
12/27/08 12:15:14 (11 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Turn lum into a method.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/color.py

    r3647 r3650  
    193193        return self.hls() + (self[3]/255.,) 
    194194 
    195     @property 
    196195    def lum(self): 
    197196        """ 
    198         The luminance value from the :prop:`hls` property. 
     197        The luminance value from :meth:`hls`. 
    199198        """ 
    200199        return colorsys.rgb_to_hls(self[0]/255., self[1]/255., self[2]/255.)[1]