change loop format
This commit is contained in:
		
							parent
							
								
									c69f0780e7
								
							
						
					
					
						commit
						aa123119bc
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -118,7 +118,8 @@ def pat(index, tick, previous_values): | ||||||
|     this.values['tick'] = tick |     this.values['tick'] = tick | ||||||
|     this.values['index'] = index |     this.values['index'] = index | ||||||
|     if this.pattern != None: |     if this.pattern != None: | ||||||
|         for i in range(len(this.pattern)): |         i = 0 | ||||||
|  |         while i < len(this.pattern): | ||||||
|             if i < len(this.pattern): |             if i < len(this.pattern): | ||||||
|                 name = this.pattern[i]['instruction']['name'] |                 name = this.pattern[i]['instruction']['name'] | ||||||
|                 targets = this.pattern[i]['instruction']['targets'] |                 targets = this.pattern[i]['instruction']['targets'] | ||||||
|  | @ -132,6 +133,7 @@ def pat(index, tick, previous_values): | ||||||
|                     if jump != i and jump <= len(this.pattern): |                     if jump != i and jump <= len(this.pattern): | ||||||
|                         print("jumping to {}".format(jump - 1)) |                         print("jumping to {}".format(jump - 1)) | ||||||
|                         i = jump - 1 |                         i = jump - 1 | ||||||
|  |             i += 1 | ||||||
|         r = this.values["r"] |         r = this.values["r"] | ||||||
|         g = this.values["g"] |         g = this.values["g"] | ||||||
|         b = this.values["b"] |         b = this.values["b"] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue