Stamp Grid: Difference between revisions
(Marked this version for translation) |
(Marked this version for translation) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
<section begin=image/> | <section begin=image/> | ||
[[File:Stamp grid.png|alt=Stamp grid|thumb]] | [[File:Stamp grid.png|alt=Stamp grid|thumb]] | ||
<section end=image/> | <section end=image/><p id="tooltip">Colors one grid square on the terrain in the agent’s current position.</p> | ||
<!--T:8--> | |||
<section begin="name" />'''<code>stamp grid [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer. | <section begin="name" />'''<code>stamp grid [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer. | ||
<!--T:2--> | <!--T:2--> | ||
== Usage== | == Usage== | ||
<code>stamp grid [_]</code> causes the [[agent]] to color one grid square on the [[terrain]] in the agent's current color on the agent's current position. | |||
==Syntax== <!--T:3--> | |||
<!--T:4--> | <!--T:4--> | ||
<code>stamp grid [Textbox: Color]</code> | <!-- <code>stamp grid [Textbox: Color]</code> --> | ||
[[File:Stamp Grid Nums.png|right|alt=The Create Each Do Block|thumb]] | |||
Inputs: | |||
#a color block | |||
==Example== <!--T:9--> | |||
<!--T:10--> | |||
[[File:stamp_grid_example.gif|alt=Stamp Grid example gif|thumb]] | |||
[[File:stamp_grid_example.png|alt=Stamp Grid example code|thumb]] | |||
<!--T:11--> | |||
This is a model of disease transmission in a school. Certain squares in spaceland have been designated to be doorknobs where sick agents are able to leave a stamp indicative of them leaving the pathogen behind. When healthy agents encounter dirty door knobs, they are likely to pick up the disease. Teachers (blue agents) can clean the doorknobs and do not get ill. | |||
<!--T:5--> | <!--T:5--> |
Latest revision as of 18:56, 11 August 2023
Colors one grid square on the terrain in the agent’s current position.
stamp grid [_]
is a code block part of the Environment drawer.
Usage
stamp grid [_]
causes the agent to color one grid square on the terrain in the agent's current color on the agent's current position.
Syntax
Inputs:
- a color block
Example
This is a model of disease transmission in a school. Certain squares in spaceland have been designated to be doorknobs where sick agents are able to leave a stamp indicative of them leaving the pathogen behind. When healthy agents encounter dirty door knobs, they are likely to pick up the disease. Teachers (blue agents) can clean the doorknobs and do not get ill.
Common Uses
This is used to track agents' individual impact on the terrain.