Clear Terrain/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 11: | Line 11: | ||
==Syntax== | ==Syntax== | ||
<code>clear terrain</code> | <code>clear terrain</code> | ||
==Example== | |||
[[File:clear_terrain_example.gif|alt=Clear Terrain example gif|thumb]] | |||
[[File:clear_terrain_example.png|alt=Clear Terrain 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 (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. | |||
==Related Blocks== | ==Related Blocks== | ||
*<code>[[ | *<code>[[Stamp]]</code> | ||
*<code>[[ | *<code>[[Stamp Grid]]</code> | ||
*<code>[[ | *<code>[[Pen|Pen [▼]]]</code> | ||
*<code>[[ | *<code>[[Terrain Color]]</code> | ||
=== Testing === | === Testing === |
Latest revision as of 19:03, 11 August 2023
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
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.