
Thus the color red goes from black (10) to dark red (11) to red Each color ranges from black to white over a scale of The allowable range of values for colors is 0 up to but not Plot-x-max plot-x-min plot-y-max plot-y-min plotxy ppd ppu set-current-plot set-current-plot-pen set-histogram-num-bars set-plot-pen-color set-plot-pen-interval set-plot-pen-mode set-plot-x-range set-plot-y-range Built-In Variables Turtles breed color heading hidden? label label-color pen-down? shape size who xcor ycor Patches pcolor plabel plabel-color pxcor pycor Other ? Keywords breeds end globals locals patches-own to to-report turtles-own Constants Mathematical Constants
#Netlogo breed mod
Operators (+,, =, !=, =) but-first but-last empty? first is-string? item last length member? position remove remove-item read-from-string replace-item reverse substring word Mathematical primitivesĪrithmetic Operators (+, *, -, /, ^,, =, !=, =) abs acos asin atan ceiling cos e exp floor int ln log max mean median min mod modes pi precision random random-exponential random-float random-gamma random-int-or-float random-normal random-poisson random-seed remainder round sin sqrt standard-deviation sum tan variance Plotting primitivesĪutoplot? auto-plot-off auto-plot-on clear-all-plots clear-plot create-temporary-plot-pen export-plot export-all-plots histogram-from histogram-list plot plot-name plot-pen-down Hubnet-broadcast hubnet-enter-message? hubnet-exit-message? hubnet-fetch-message hubnet-message hubnet-message-source hubnet-message-tag hubnet-message-waiting? hubnet-reset hubnet-send hubnet-set-client-interface Input/output primitivesĬlear-output export-graphics export-interface export-output export-plot export-all-plots export-world get-date-and-time import-world mouse-down? mouse-xcor mouse-ycor print read-from-string reset-timer set-current-directory show timer type user-choice user-choose-directory user-choose-file user-choose-new-file user-input user-message user-yes-or-no? write File primitivesįile-at-end? file-close file-close-all file-delete file-exists? file-open file-print file-read file-read-characters file-read-line file-show file-type file-write user-choose-directory user-choose-file user-choose-new-file List primitivesīut-first but-last empty? filter first foreach fput is-list? item last length list lput map member? modes n-values position random-n-of random-one-of reduce remove remove-duplicates remove-item replace-item reverse sentence shuffle sort sort-by values-from String primitives

#Netlogo breed Patch
Sprout stamp towards towards-nowrap towardsxy towardsxy-nowrap turtle turtles turtles-at turtles-from turtles-here turtles-on turtles-own uphill value-from Patch-related primitivesĭiffuse diffuse4 distance distance-nowrap distancexy distancexy-nowrap inspect is-patch? myself neighbors neighbors4 no-label nobody nsum nsum4 -of patch patch-at patch-ahead patch-at-heading-and-distance patch-here patch-left-and-ahead patch-right-and-ahead patches patches-from patches-own self sprout value-from Agentset primitivesĪny? ask at-points BREED-at BREED-here BREED-on count histogram-from in-radius in-radius-nowrap is-agent? is-agentset? is-patch-agentset? is-turtle-agentset? max-one-of min-one-of neighbors neighbors4 one-of other-turtles-here other- BREED-here patches patches-from random-n-of random-one-of turtles with turtles-at turtles-from turtles-here turtles-on values-from Color primitivesĮxtract-hsb extract-rgb hsb rgb scale-color shade-of? wrap-color Control flow and logic primitivesĪnd end foreach if ifelse ifelse-value locals loop map not or repeat report run runresult (semicolon) stop startup to to-report wait while without-interruption xor Display primitivesĭisplay no-display no-label screen-edge-x screen-edge-y screen-size-x screen-size-y HubNet primitives Myself no-label nobody -of other-turtles-here other- BREED-here patch-ahead patch-here patch-left-and-ahead patch-right-and-ahead pen-down

Run each command, consult each individual entry in the dictionary.īREED-at BREED-here BREED-on clear-turtlesĬreate- BREED create-custom- BREED create-custom-turtlesĭie distance distance-nowrap distancexy distancexy-nowrap downhill downhill4 dx dy forward To see which agent (turtles, patches, observer) can actually Primitive might still be called by patches or observers, and vice NetLogo User Manual: Primitives Dictionary Categories of Primitives
