NetLogo Help: display

### display1.0

#### display

Causes the view to be updated immediately. (Exception: if the user is using the speed slider to fast-forward the model, then the update may be skipped.)

Also undoes the effect of the no-display command, so that if view updates were suspended by that command, they will resume.

    no-display
    ask turtles [ jump 10 set color blue set size 5 ]
    display
    ;; turtles move, change color, and grow, with none of
    ;; their intermediate states visible to the user, only
    ;; their final state

Even if no-display was not used, "display" can still be useful, because ordinarily NetLogo is free to skip some view updates, so that fewer total updates take place, so that models run faster. This command lets you force a view update, so whatever changes have taken place in the world are visible to the user.

    ask turtles [ set color red ]
    display
    ask turtles [ set color blue]
    ;; turtles turn red, then blue; use of "display" forces
    ;; red turtles to appear briefly

Note that display and no-display operate independently of the switch in the view control strip that freezes the view.

See also no-display.

Take me to the full NetLogo Dictionary