Langton's ant: Difference between revisions

m (→‎{{header|REXX}}: (hopefully) clarified what is displayed in the section header. -- ~~~~)
Line 2,431:
y = y + (nxt = 3) - (nxt = 1)
plane(x,y) = (plane(x,y) <> 1)
mxmy = min(xy,mxmy)
wend
graphic #g, 100,100
for xy = mxmy to 100
for yx = 1 to 100
print chr$((plane(x,y)*3) + 32);
if plane(x,y) = 1 then #g "color green ; set "; x; " "; y else #g "color blue ; set "; x; " "; y
next yx
print xy
next xy
render #g
#g "flush"</lang>
1,481

edits