Netlogo 在导入的图形中停止海龟以填充图形

Netlogo 在导入的图形中停止海龟以填充图形,netlogo,Netlogo,实际上,我在使用“import pcolors”命令导入的图形中使用提前补丁1条件来停止我的海龟 绘图或形状(如星鱼)在世界斑块的中心对齐,4只海龟(种子)被放置在形状图中原点的中心附近保持静止,直到结束,所有其他海龟被随机放置,并且在世界上以静止?=错误 目标是通过随机移动海龟,并在接近下一只静止海龟时停止,并成为静止?=正确,以及所有其他非静止海龟的参考 这是我到目前为止试过的 to setup import-pcolors "starnew.png" ; image i

实际上,我在使用“
import pcolors
”命令导入的图形中使用提前补丁1条件来停止我的海龟

绘图或形状(如星鱼)在世界斑块的中心对齐,4只海龟(种子)被放置在形状图中原点的中心附近保持静止,直到结束,所有其他海龟被随机放置,并且在世界上以
静止?=错误

目标是通过随机移动海龟,并在接近下一只静止海龟时停止,并成为
静止?=正确
,以及所有其他非静止海龟的参考

这是我到目前为止试过的

    to setup
      import-pcolors "starnew.png" ; image imported in the world on patches for turtles to interact

      create-robots num-of-robots
        [
          set seed? false
          set stationary? false
        set shape "circle 2"  
        setxy random-pxcor random-pycor
      ]

      ask turtles
      [
        if who = 0 ; similarly for who = 1 (setxy = 0 1 ), who = 2 (setxy = 1 0 ), who = 3 (setxy = 0 -1 ),  having loaction near centre origin 
        [
          setxy  0 0
          set seed? true
          set stationary? true
          set localized? true
          ]
      ]   
    end
    to go
ask robots with [stationary? != true]
  [

    ifelse pcolor = white   ;; out-shape
      [
        wall
        fd 0.1
        rt random 30
        lt random 30
      ]
      [                     ;; In-shape
        set pos-inside? true
        ifelse ( not any? (robots-on patch-ahead 1 ) with [stationary? = true or seed? = true]   )
        [
          fd 0.1
          rt random 30
          lt random 30
        ]
        [
          set pos-inside? true
          set stationary? true
          set localized? true
          stop
        ]
      ]
  ]
  end
我想要达到的预期行为如下图所示。

你的问题是什么?到目前为止,您的代码有哪些地方不正确?是否有错误信息、不正确的行为或什么?您的问题是什么?到目前为止,您的代码有哪些地方不正确?是否有错误消息、错误行为或其他原因?