Stamp Grid: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(Marked this version for translation)
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
<translate>
<translate>


<!--T:1-->
<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-->
== Usage==
== Usage==
<p id="tooltip"><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.</p>
<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-->
<!-- <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-->


===Syntax===
<!--T:10-->
[[File:stamp_grid_example.gif|alt=Stamp Grid example gif|thumb]]
[[File:stamp_grid_example.png|alt=Stamp Grid example code|thumb]]


<code>stamp grid [Textbox: Color]</code>
<!--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-->
==Common Uses==
==Common Uses==
This is used to track agents' individual impact on the terrain.  
This is used to track agents' individual impact on the terrain.  


==Nuances==
==Nuances== <!--T:6-->


<!--T:7-->
==Related Blocks==
==Related Blocks==
*<code>[[Stamp|stamp [_]]]</code>
*<code>[[Stamp|stamp [_]]]</code>

Latest revision as of 18:56, 11 August 2023

Other languages:


Stamp grid

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

The Create Each Do Block

Inputs:

  1. a color block

Example

Stamp Grid example code

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.

Nuances

Related Blocks