netlogo - How to draw patches situated in crossroads? -


How do the patch located in the intersection (the roads are drawn in white) as the picture below Can I attract / P>

Here is the beginning of the code:

  with question ([pcolor = white] and (pxcor mod (nb-patch-length + 1) = 0) and (Pycor Mod (nb-patch-width + 1) = 0)] [set pcolor red]  

Thanks in advance for your help.

Enter image details here

< Div class = "post-text" itemprop = "text">

How about this? (Suppose roads have a patch in width and always horizontal or vertical.)

  with question [all? Neighbors 4 [pcolor = white]] [set pcolor red]  

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -