netlogo

netlogo, accessing color of a patch

i am trying to apply the following condition: if ( the color of patch -2 -1 is red ) [ some cammands ] can anyone please tell me how to write this in netlogo ...

netlogo programming question

am trying to apply the following condition: if ( the color of patch -2 -1 is red ) [ some cammands ] can anyone please tell me how to write this in netlogo ...