我正在使用网络徽标,我想问所有海龟一些事情,但将其分别应用于每只海龟:
to setup-t
ask turtles [
if color = white [ set t 99 ]
if color = red [ set t 92.4 ]
if color = orange [ set t 85.8 ]
if color = brown [ set t 79.2 ]
if color = yellow [ set t 72.6 ]
if color = green [ set t 66 ]
if color = lime [ set t 59.4 ]
if color = turquoise [ set t 52.8 ]
if color = cyan [ set t 46.2 ]
if color = sky [ set t 39.6 ]
if color = blue [ set t 33 ]
if color = violet [ set t 26.4 ]
if color = magenta [ set t 19.8 ]
if color = pink [ set t 13.2 ]
if color = black [ set t 6.6 ]
]
end
通过这种方式,它适用于所有海龟,但每只海龟都有不同的颜色,我希望以不同的方式单独地应用于每只海龟。我怎样才能做到这一点?谢谢