如何改变netlogo中的圆心?

How to change the center of a circle in netlogo?

这一次我正在努力改变 netlogo 中的圆心。 我试过使用 layout-circle 和 create-ordered-turtle 但我不能让圆选择除中间坐标以外的其他坐标。

to setup-food
  set-default-shape turtles "dot"

repeat num-food
  [patch-at random-pxcor random-pycor [cro 10 [fd radius set color blue]]]

 ;that was my first attempt
 ;now for the second one  

layout-circle turtles radius 
repeat num-food 
[ setxy random-pxcor random-pycor
  foreach range 25 [y -> ask turtle y
[ foreach range (24 - y) [x -> create-link-with turtle (x + (1 + y))]]]
 ]
end

使用 create-ordered-turtles,您可以:

to setup-food
  set-default-shape turtles "dot"
  repeat num-food [
    let center one-of patches
    cro 10 [
      move-to center
      fd radius
      set color blue
    ]
  ]
end

也就是说,您需要确保将所有海龟移到同一个地方。在您的代码中,它们在移动之前都会转到不同的随机补丁。