Clear Terrain: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<translate>
<!--T:1-->
[[Category:Environment]]
[[Category:Environment]]
<section begin="image"/>[[File:Clear Terrain Block.png|alt=The clear terrain block|thumb]]<section end="image"/>
<section begin="image"/>[[File:Clear Terrain Block.png|alt=The clear terrain block|thumb]]<section end="image"/><p id="tooltip">Resets SpaceLand’s terrain (ground) to its default green color.</p>
 
<!--T:7-->
<section begin="name" />'''{{ClearTerrainBlock}}'''<section end="name" /> is a code block from the [[Environment]] drawer.
<section begin="name" />'''{{ClearTerrainBlock}}'''<section end="name" /> is a code block from the [[Environment]] drawer.


<!--T:2-->
==Usage==
==Usage==
<p id="tooltip">{{ClearTerrainBlock}} is used to clear the [[Spaceland]] of all [[drawing]]s.</p>
{{ClearTerrainBlock}} is used to clear the [[Spaceland]] of all [[drawing]]s.
 
<!--T:3-->
==Syntax==
<code>clear terrain</code>
 
==Example== <!--T:8-->
 
<!--T:9-->
[[File:clear_terrain_example.gif|alt=Clear Terrain example gif|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.


<!--T:4-->
==Related Blocks==
==Related Blocks==
*<code>[[stamp]]</code>
*<code>[[Stamp]]</code>
*<code>[[stamp grid]]</code>
*<code>[[Stamp Grid]]</code>
*<code>[[pen|pen [▼]]]</code>
*<code>[[Pen|Pen [▼]]]</code>
*<code>[[terrain color]]</code>
*<code>[[Terrain Color]]</code>


=== Testing ===
=== Testing === <!--T:5-->
</translate>

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