Changeset 3651:eb3451d6772b in livinglogic.python.xist

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

Add lum as a method for UL4 color objects.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/ul4c.py

    r3649 r3651  
    10391039                        raise UnknownFunctionError(opcode.arg) 
    10401040                elif opcode.code == "callmeth0": 
    1041                     if opcode.arg in ("split", "rsplit", "strip", "lstrip", "rstrip", "upper", "lower", "capitalize", "isoformat", "r", "g", "b", "a", "hls", "hlsa", "hsv", "hsva"): 
     1041                    if opcode.arg in ("split", "rsplit", "strip", "lstrip", "rstrip", "upper", "lower", "capitalize", "isoformat", "r", "g", "b", "a", "hls", "hlsa", "hsv", "hsva", "lum"): 
    10421042                        _code("reg%d = reg%d.%s()" % (opcode.r1, opcode.r2, opcode.arg)) 
    10431043                    elif opcode.arg == "items":