Download NetLogo 1.1 User Manual
Transcript
NetLogo 1.1 User Manual ;; all turtles with xcor greater than 20 die See also: ct diffuse diffuse patch−variable number Tells each patch to share (number * 100) percent of the value of patch−variable with its eight neighboring patches. number should be between 0 and 1. Note that this is an observer command only, even though you might expect it to be a patch command. (The reason is that it acts on all the patches at once −− patch commands act on individual patches.) diffuse chemical 0.5 ;; each patch diffuses 50% of its variable ;; chemical to its neighboring 8 patches. Thus, ;; each patch gets 1/8 of 50% of the chemical ;; from each neighboring patch.) diffuse4 diffuse4 patch−variable number Like diffuse, but only diffuses to the four neighboring patches (to the north, south, east, and west), not to the diagonal neighbors. diffuse4 chemical 0.5 ;; each patch diffuses 50% of its variable ;; chemical to its neighboring 4 patches. Thus, ;; each patch gets 1/4 of 50% of the chemical ;; from each neighboring patch.) display display Resumes updating of the graphics window (which may have been turned off using the no−display command). Any changes in the state of the graphics window that were made while no−display was in effect will immediately be drawn on−screen all at once. See also no−display. Primitives Dictionary 105