Stamp/es: Difference between revisions

From StarLogo Nova Wiki
(Created page with "<section begin=image/>right|alt=The Stamp Block|thumb<section end=image/> <!-- <code>stamp [Textbox: Color]</code> --> Inputs: #Color block")
(Updating to match new version of source page)
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
<section end=image/>
<section end=image/>
<section begin="name" />'''<code>stamp [_]</code>'''<section end="name" /> is a [[Special:MyLanguage/code block|bloque de código]] part of the [[Special:MyLanguage/Environment|ambiente]] drawer.
<section begin="name" />'''<code>stamp [_]</code>'''<section end="name" /> is a [[Special:MyLanguage/code block|bloque de código]] part of the [[Special:MyLanguage/Environment|ambiente]] drawer.
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin="name" />'''<code>stamp [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer.
</div>


== Uso ==
== Uso ==
Line 12: Line 16:
==Sintaxis==
==Sintaxis==


<section begin=image/>[[File:Stamp Nums Es.png|right|alt=The Stamp Block|thumb]]<section end=image/>
[[File:Stamp Nums Es.png|right|alt=The Stamp Block|thumb]]
<!-- <code>stamp [Textbox: Color]</code> -->
<!-- <code>stamp [Textbox: Color]</code> -->
Inputs:
Inputs:
#Color block
#Color block


<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:stamp_example.gif|alt=Stamp example gif|thumb]]
[[File:stamp_example.png|alt=Stamp example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
This is a model of disease transmission in a school. Certain squares in [[Special:MyLanguage/Spaceland|spaceland]] have been designated to be doorknobs where sick agents are able to leave a stamp indicative of them leaving the pathogen behind. The size of each Student determines how likely they are to transmit the disease (e.g. small agents wash their hands more frequently). This works because the stamp block leaves a mark proportional to the agent’s size. When healthy agents encounter dirty door knobs, they are likely to pick up the disease. Teachers (large blue agents) can clean doorknobs and not get ill.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Latest revision as of 19:24, 11 August 2023

Other languages:


stamp

stamp [_] is a bloque de código part of the ambiente drawer.

stamp [_] is a code block part of the Environment drawer.

Uso

stamp [_] causes the agent to draw a circle on the terrain in the agent's current position, with size corresponding to the size of the agent.

Sintaxis

The Stamp Block

Inputs:

  1. Color block

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. The size of each Student determines how likely they are to transmit the disease (e.g. small agents wash their hands more frequently). This works because the stamp block leaves a mark proportional to the agent’s size. When healthy agents encounter dirty door knobs, they are likely to pick up the disease. Teachers (large blue agents) can clean doorknobs and not get ill.

Common Uses

This is used to change the color of the terrain. Changing the color of all the terrain would require creating one large agent of size 200 and then stamping a certain color.

Nuances

Related Blocks