diff --git a/pattern.py b/pattern.py index 7bdf713..e02e2b2 100644 --- a/pattern.py +++ b/pattern.py @@ -14,6 +14,9 @@ this.values = { "stack4": 0, "stack5": 0, "stack6": 0, + "stackr": 0, + "stackg": 0, + "stackb": 0, "r": 0, "g": 0, "b": 0, @@ -68,14 +71,15 @@ def jez(target, arg, index): def _apply(index, target, arg, func): if type(arg) is int: + print("{} {} {}".format(func, target, arg)) return func(target, arg, index) elif type(arg) is str and arg in this.values: + print("{} {} {}".format(func, target, this.values[arg])) return func(target, this.values[arg], index) def apply(index, targets, args, func): for target in range(len(targets)): - print("{} {} {}".format(func, targets[target]['channel'], args[target])) if this.values[targets[target]['channel']] != None: if target < len(args): val, jump = _apply(