Skip to content

Playing with patches

theory-sma
Figure 1
ask patches with [ ((pxcor < 0 and pycor > 0) or (pxcor < 0 and pycor < 0 )) and abs pxcor = abs pycor] [ set pcolor red]
theory-sma
Figure 1
theory-sma
Figure 1
ask patches with [ (pxcor < 2 and pxcor > -2) and (pycor > -2 and pycor < 2 )] [ set pcolor blue]
theory-sma
Figure 1
ask patches with [ (pxcor = -3 and (pycor > -4 and pycor < 4) or (pxcor = 3 and (pycor > -4 and pycor < 4) ) or (pycor = -3 and (pxcor > -3 and pxcor < 3)) or (pycor = 3 and (pxcor > -3 and pxcor < 3)) )  ] [ set pcolor green]