diff --git a/packages/common-data/datasets/primitives.yaml b/packages/common-data/datasets/primitives.yaml index 37646a82..4c1ed102 100644 --- a/packages/common-data/datasets/primitives.yaml +++ b/packages/common-data/datasets/primitives.yaml @@ -3116,7 +3116,7 @@ primitives: It is equivalent to: ``` - patch-ahead distance != nobody + patch-ahead distance != nobody ``` examples: @@ -3140,7 +3140,7 @@ primitives: It is equivalent to: ``` - patch-ahead distance != nobody + patch-ahead distance != nobody ``` examples: @@ -6151,12 +6151,12 @@ primitives: numeric): ``` - move-to patch-here ;; go to patch center - let p min-one-of neighbors [patch-variable] ;; or neighbors4 - if [patch-variable] of p < patch-variable [ - face p - move-to p - ] + move-to patch-here ;; go to patch center + let p min-one-of neighbors [patch-variable] ;; or neighbors4 + if [patch-variable] of p < patch-variable [ + face p + move-to p + ] ``` @@ -6195,12 +6195,12 @@ primitives: numeric): ``` - move-to patch-here ;; go to patch center - let p min-one-of neighbors [patch-variable] ;; or neighbors4 - if [patch-variable] of p < patch-variable [ - face p - move-to p - ] + move-to patch-here ;; go to patch center + let p min-one-of neighbors [patch-variable] ;; or neighbors4 + if [patch-variable] of p < patch-variable [ + face p + move-to p + ] ``` @@ -6236,12 +6236,12 @@ primitives: numeric): ``` - move-to patch-here ;; go to patch center - let p min-one-of neighbors [patch-variable] ;; or neighbors4 - if [patch-variable] of p < patch-variable [ - face p - move-to p - ] + move-to patch-here ;; go to patch center + let p min-one-of neighbors [patch-variable] ;; or neighbors4 + if [patch-variable] of p < patch-variable [ + face p + move-to p + ] ``` @@ -14355,7 +14355,7 @@ primitives: use with-max instead. ``` - show max-one-of patches [count turtles-here] + show max-one-of patches [count turtles-here] ;; prints the first patch with the most turtles on it ``` @@ -14382,7 +14382,7 @@ primitives: use with-max instead. ``` - show max-one-of patches [count turtles-here] + show max-one-of patches [count turtles-here] ;; prints the first patch with the most turtles on it ``` @@ -15022,7 +15022,7 @@ primitives: equivalent to the following NetLogo code: ``` - number1 - (floor (number1 / number2)) * number2 + number1 - (floor (number1 / number2)) * number2 ``` Note that mod is "infix", that is, it comes between its @@ -15058,7 +15058,7 @@ primitives: equivalent to the following NetLogo code: ``` - number1 - (floor (number1 / number2)) * number2 + number1 - (floor (number1 / number2)) * number2 ``` Note that mod is "infix", that is, it comes between its @@ -20276,7 +20276,7 @@ primitives: ``` - number1 - (int (number1 / number2)) * number2 + number1 - (int (number1 / number2)) * number2 ``` @@ -20316,7 +20316,7 @@ primitives: ``` - number1 - (int (number1 / number2)) * number2 + number1 - (int (number1 / number2)) * number2 ``` @@ -22665,12 +22665,12 @@ primitives: Example: ``` - ask turtles [ set shape "wolf" ] - ;; assumes you have made a "wolf" - ;; shape in NetLogo's [Turtle Shapes Editor](shapes) - ask links [ set shape "link 1" ] - ;; assumes you have made a "link 1" shape in - ;; the Link Shapes Editor + ask turtles [ set shape "wolf" ] + ;; assumes you have made a "wolf" + ;; shape in NetLogo's [Turtle Shapes Editor](shapes) + ask links [ set shape "link 1" ] + ;; assumes you have made a "link 1" shape in + ;; the Link Shapes Editor ``` See also [[set-default-shape|set-default-shape]], [[shapes|shapes]]. @@ -22705,12 +22705,12 @@ primitives: Example: ``` - ask turtles [ set shape "wolf" ] - ;; assumes you have made a "wolf" - ;; shape in NetLogo's [Turtle Shapes Editor](shapes) - ask links [ set shape "link 1" ] - ;; assumes you have made a "link 1" shape in - ;; the Link Shapes Editor + ask turtles [ set shape "wolf" ] + ;; assumes you have made a "wolf" + ;; shape in NetLogo's [Turtle Shapes Editor](shapes) + ask links [ set shape "link 1" ] + ;; assumes you have made a "link 1" shape in + ;; the Link Shapes Editor ``` See also [[set-default-shape|set-default-shape]], [[shapes|shapes]]. @@ -25571,12 +25571,12 @@ primitives: numeric): ``` - move-to patch-here ;; go to patch center - let p max-one-of neighbors [patch-variable] ;; or neighbors4 - if [patch-variable] of p > patch-variable [ - face p - move-to p - ] + move-to patch-here ;; go to patch center + let p max-one-of neighbors [patch-variable] ;; or neighbors4 + if [patch-variable] of p > patch-variable [ + face p + move-to p + ] ``` Note that the turtle always ends up on a patch center and has a @@ -25614,12 +25614,12 @@ primitives: numeric): ``` - move-to patch-here ;; go to patch center - let p max-one-of neighbors [patch-variable] ;; or neighbors4 - if [patch-variable] of p > patch-variable [ - face p - move-to p - ] + move-to patch-here ;; go to patch center + let p max-one-of neighbors [patch-variable] ;; or neighbors4 + if [patch-variable] of p > patch-variable [ + face p + move-to p + ] ``` @@ -25655,12 +25655,12 @@ primitives: numeric): ``` - move-to patch-here ;; go to patch center - let p max-one-of neighbors [patch-variable] ;; or neighbors4 - if [patch-variable] of p > patch-variable [ - face p - move-to p - ] + move-to patch-here ;; go to patch center + let p max-one-of neighbors [patch-variable] ;; or neighbors4 + if [patch-variable] of p > patch-variable [ + face p + move-to p + ] ``` Note that the turtle always ends up on a patch center and has a @@ -46795,14 +46795,14 @@ primitives: ``` - palette:scheme-dialog + palette:scheme-dialog - ;; In the dialog the user selects scheme type "Divergent," the scheme named "Spectral," and the number 3, and clicks the *Copy* button. - ;; In the Command Center the user types "show palette:scheme-colors " and then pastes the clipboard contents, and hits *Enter*. + ;; In the dialog the user selects scheme type "Divergent," the scheme named "Spectral," and the number 3, and clicks the *Copy* button. + ;; In the Command Center the user types "show palette:scheme-colors " and then pastes the clipboard contents, and hits *Enter*. - show palette:scheme-colors "Divergent" "Spectral" 3 + show palette:scheme-colors "Divergent" "Spectral" 3 - => [[252 141 89] [255 255 191] [153 213 148]] + => [[252 141 89] [255 255 191] [153 213 148]] ``` metadata: name: scheme-dialog @@ -46834,14 +46834,14 @@ primitives: ``` - palette:scheme-dialog + palette:scheme-dialog - ;; In the dialog the user selects scheme type "Divergent," the scheme named "Spectral," and the number 3, and clicks the *Copy* button. - ;; In the Command Center the user types "show palette:scheme-colors " and then pastes the clipboard contents, and hits *Enter*. + ;; In the dialog the user selects scheme type "Divergent," the scheme named "Spectral," and the number 3, and clicks the *Copy* button. + ;; In the Command Center the user types "show palette:scheme-colors " and then pastes the clipboard contents, and hits *Enter*. - show palette:scheme-colors "Divergent" "Spectral" 3 + show palette:scheme-colors "Divergent" "Spectral" 3 - => [[252 141 89] [255 255 191] [153 213 148]] + => [[252 141 89] [255 255 191] [153 213 148]] ``` urlHome: https://docs.netlogo.org/palette.html sourceIcon: i-lets-icons-color-mode