Compare commits

..

No commits in common. "c0beac01325d090b5d94c79e890cfedf2da6f9b9" and "b472b0ce3ca2461098e73ed9f2837d37db444507" have entirely different histories.

View file

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