Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 66 additions & 66 deletions packages/common-data/datasets/primitives.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3116,7 +3116,7 @@ primitives:
It is equivalent to:

```
patch-ahead distance != nobody
patch-ahead distance != nobody
```

examples:
Expand All @@ -3140,7 +3140,7 @@ primitives:
It is equivalent to:

```
patch-ahead distance != nobody
patch-ahead distance != nobody
```

examples:
Expand Down Expand Up @@ -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
]
```


Expand Down Expand Up @@ -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
]
```


Expand Down Expand Up @@ -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
]
```


Expand Down Expand Up @@ -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
```
Expand All @@ -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
```
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -20276,7 +20276,7 @@ primitives:


```
number1 - (int (number1 / number2)) * number2
number1 - (int (number1 / number2)) * number2
```


Expand Down Expand Up @@ -20316,7 +20316,7 @@ primitives:


```
number1 - (int (number1 / number2)) * number2
number1 - (int (number1 / number2)) * number2
```


Expand Down Expand Up @@ -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]].
Expand Down Expand Up @@ -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]].
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
]
```


Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading