bksnlow
bksnlow

Reputation: 137

How to set patch color in the diagonal Netlogo

enter image description hereWant to draw a river diagonal to the center of the of the world, however ive found that i would have to do a list with all the patches i want to color, is there a faster way to color the diagonal?

Thanks

I need this diagonal, form the middle of the map upwards, Its even tougher to me as its going backwords and doesnt end in the top most middle.

Upvotes: 0

Views: 122

Answers (1)

Seth Tisue
Seth Tisue

Reputation: 30453

This code:

ask patches with [pxcor = pycor] [
  set pcolor green
]

Draws this:

enter image description here

And here's a version that does the diagonal in the upper right corner:

ask patches with [pxcor + pycor = max-pxcor] [
  set pcolor green
]

enter image description here

Upvotes: 3

Related Questions