ask-patches [ …] setpc red setpc pc + 1 setpc (random 256) repeat 100 [setpc pc + 1] setpc xcor setpc xcor + ycor if xcor < 0 [setpc red] - if (distance 5 5) < 10 [setpc green] - if (distance mouse-xcor mouse-ycor) < 4 [setpc blue] ifelse ycor < 0 [setpc red] [setpc blue]