diff --git a/pattern.py b/pattern.py index dd36bce..d3d603c 100644 --- a/pattern.py +++ b/pattern.py @@ -71,10 +71,10 @@ def jez(target, arg, index): def _apply(index, target, arg, func): if type(arg) is int: - print("{} {} {} {}".format(index, func.__name__, target, arg)) + print("ran: {} {} {} {}".format(index, func.__name__, target, arg)) return func(target, arg, index) elif type(arg) is str and arg in this.values: - print("{} {} {} {}".format( + print("ran: {} {} {} {}".format( index, func.__name__, target, this.values[arg])) return func(target, this.values[arg], index) @@ -82,6 +82,7 @@ def _apply(index, target, arg, func): def apply(index, targets, args, func): for target in range(len(targets)): if this.values[targets[target]['channel']] != None: + print("target: {}".format(targets[target]['channel'])) if target < len(args): val, jump = _apply( index, this.values[targets[target]['channel']], args[target], func) @@ -148,7 +149,7 @@ def pat(index, tick, previous_values): b = 255 elif b < 0: b = 0 - print("final color: {}", (r, g, b)) + print("final color: {}".format((r, g, b))) return (r, g, b) else: return default(index, tick)