04-20-2007, 05:12 PM
ken gray Wrote:how about this?
mou 305 85 "Quick Macros"
int col [color=red]this is just initialing the integer 'col'[/color]
col = pixel(305 85 "Quick Macros") [color=red]Stores the color from the xy inside the parens[/color]
rep
,if col = pixel(300 85 "Quick Macros")
,,out "continue"[color=red]just puts the word continue in the output of the editor for debug[/color]
,,0.5[color=red]waits half-second[/color]
,,ClearOutput[color=red]clears the Editor's output box for debugging[/color]
,,continue[color=red]if colour the same keep repeating[/color]
,else
,,break[color=red]if colour is changed stop repeating and go on[/color]
out "break"[color=red]output for debugging[/color]
