Search code examples
netlogopaint

Unexpected paint behavior


I want to use a paint command but think have a file problem, not a code problem. This is the code:

to color-white
 if mouse-down?
   [ask patch mouse-xcor mouse-ycor
       [ set pcolor white]]
end

It simply paints in real time when the left mouse button is pushed and pointer passes over the screen. The code works if its written in a new Netlogo session. But if it's used in this file:

paint-white.nlogo

paint won't appear in real time. Please help.


Solution

  • Problem solved: changed view updates from "on ticks" to "continuous".