3
我想用NetLogo在移動公告板上模擬公告的顏色。我可以讓bulleting在相遇時改變顏色,但顏色的變化是隨機的,有時候相同顏色的公告會在我的範圍內觸摸或靠近在一起我希望公告中的某個特定顏色raduis.Here是我的代碼的一小部分。任何人都可以幫我解決問題嗎?用NetLogo代理着色
to color-bulletins
ask bulletins [
ask other bulletins in-radius 2[
ask one-of bulletins [ set color green]
ask one-of bulletins [ set color white ]
ask one-of bulletins [ set color yellow]
ask one-of bulletins [ set color blue ]
]]
end