This commit is contained in:
jane 2020-11-09 02:52:45 -05:00
parent ad0aa01052
commit 3116435878
1 changed files with 8 additions and 7 deletions

View File

@ -89,13 +89,14 @@ def pat(index, tick, previous_values):
this.values['index'] = index
if this.pattern != None:
for i in range(len(this.pattern)):
name = this.pattern[i]['instruction']['name']
targets = this.pattern[i]['instruction']['targets']
args = []
if 'args' in this.pattern[i]['instruction']:
args = this.pattern[i]['instruction']['args']
if this.instructions[name] != None:
apply(targets, args, this.instructions[name])
if i < len(this.pattern):
name = this.pattern[i]['instruction']['name']
targets = this.pattern[i]['instruction']['targets']
args = []
if 'args' in this.pattern[i]['instruction']:
args = this.pattern[i]['instruction']['args']
if this.instructions[name] != None:
apply(targets, args, this.instructions[name])
r = this.values["r"]
g = this.values["g"]
b = this.values["b"]