Dear community,
I am drawing a simple corridor in NetLogo, I already have an horizontal corridor as this.
But I been wondering if there is another way of doing it, I mean a better one.
to draw-walls-x
let top-wall 0
let bottom-wall 0
let width 5
; repeat 81 because my world has dimensions of 80 x 40.
repeat 81 [
ask patch top-wall ((width + 1) / 2) [ set pcolor black ]
set top-wall (top-wall + 1)
]
repeat 81 [
ask patch bottom-wall (-((width + 1) / 2)) [ set pcolor black ]
set bottom-wall (bottom-wall + 1)
]
end
Thanks to all suggestions!
------------------
Ali