title: Netlogo : how to make patches have the distance information from a certain red patch
body: <p>I am trying to make all patches have distance information from the red point [5 -5]. And then these distance information will be used for opinion dynamics in the end.</p>
  
  <pre><code> patches-own [e-distance]
  </code></pre>
  
  <p>i added e-distance to insert the distance information </p>
  
  <pre><code>to setup
     clear-all
     ask patch 5 -5 [
         set pcolor red
         ]    
   end
  
   to go 
     let red-patch patches with [ pcolor = red ]
  
   end 
  </code></pre>