Clear Terrain

From StarLogo Nova Wiki
Revision as of 18:53, 11 August 2023 by Admin (talk | contribs) (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
The clear terrain block

Resets SpaceLand’s terrain (ground) to its default green color.

clear terrain is a code block from the Environment drawer.

Usage

clear terrain is used to clear the Spaceland of all drawings.

Syntax

clear terrain

Example

Clear Terrain example gif
Clear Terrain 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 (large blue agents) can clean doorknobs and do not get ill. When the setup button is pressed, the clear terrain block removes all markings made on the surface of spaceland (which result from stamp, pen down, etc.). This allows the simulation to restart completely.

Related Blocks

Testing