Stamp Grid/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:


<!-- <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==
[[File:stamp_grid_example.gif|alt=Stamp Grid example gif|thumb]]
[[File:stamp_grid_example.png|alt=Stamp Grid example code|thumb]]
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==
==Common Uses==

Latest revision as of 14:48, 13 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