Stamp Grid

From StarLogo Nova Wiki
Revision as of 18:56, 11 August 2023 by Admin (talk | contribs) (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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