Clear Terrain: Difference between revisions

From StarLogo Nova Wiki
mNo edit summary
(Marked this version for translation)
 
Line 17: Line 17:
<code>clear terrain</code>
<code>clear terrain</code>


==Example==
==Example== <!--T:8-->


<!--T:9-->
[[File:clear_terrain_example.gif|alt=Clear Terrain example gif|thumb]]
[[File:clear_terrain_example.gif|alt=Clear Terrain example gif|thumb]]
[[File:clear_terrain_example.png|alt=Clear Terrain example code|thumb]]
[[File:clear_terrain_example.png|alt=Clear Terrain example code|thumb]]


<!--T:10-->
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 [[Special:MyLanguage/Spaceland|spaceland]] (which result from [[Special:MyLanguage/Stamp|stamp]], [[Special:MyLanguage/Pen|pen down]], etc.). This allows the simulation to restart completely.
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 [[Special:MyLanguage/Spaceland|spaceland]] (which result from [[Special:MyLanguage/Stamp|stamp]], [[Special:MyLanguage/Pen|pen down]], etc.). This allows the simulation to restart completely.



Latest revision as of 18:53, 11 August 2023

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