Compare commits
No commits in common. "c0beac01325d090b5d94c79e890cfedf2da6f9b9" and "b472b0ce3ca2461098e73ed9f2837d37db444507" have entirely different histories.
c0beac0132
...
b472b0ce3c
1 changed files with 1 additions and 5 deletions
|
@ -14,9 +14,6 @@ this.values = {
|
|||
"stack4": 0,
|
||||
"stack5": 0,
|
||||
"stack6": 0,
|
||||
"stackr": 0,
|
||||
"stackg": 0,
|
||||
"stackb": 0,
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
|
@ -71,15 +68,14 @@ 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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue