Stamp Grid: Difference between revisions

From StarLogo Nova Wiki
(add tooltip text)
(Marked this version for translation)
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
<section end=image/><p id="tooltip">Colors one grid square on the terrain in the agent’s current position.</p>
<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.


Line 17: Line 18:
<!--T:4-->
<!--T:4-->
<!-- <code>stamp grid [Textbox: Color]</code> -->
<!-- <code>stamp grid [Textbox: Color]</code> -->
<section begin=image/>[[File:Stamp Grid Nums.png|right|alt=The Create Each Do Block|thumb]]<section end=image/>
[[File:Stamp Grid Nums.png|right|alt=The Create Each Do Block|thumb]]
Inputs:
Inputs:
#a color block
#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

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