Pen: Difference between revisions

From StarLogo Nova Wiki
(Created page with "Category:Environment Category:Code Block <section begin=image/><section end=image/> {{#vardefine:pen|<code>pen [▼]</code>}} <section begin=name/>'''<code>pen [▼]</code>'''<section end=name/> is a code block part of the environment drawer. ==Usage== <p id="tooltip"><code>pen [▼](s)</code> adjusts the pen tool. If the pen is down, the agent stamps the terrain at each position as it moves. If the pen is up, the agent does not stamp the terrain.</p> =...")
 
No edit summary
Line 3: Line 3:
<section begin=image/><section end=image/>
<section begin=image/><section end=image/>
{{#vardefine:pen|<code>pen [▼]</code>}}
{{#vardefine:pen|<code>pen [▼]</code>}}
<section begin=name/>'''<code>pen [▼]</code>'''<section end=name/> is a [[code block]] part of the [[environment]] drawer.
<section begin=name/>'''<code>pen [▼]</code>'''<section end=name/> is a [[code block]] part of the [[Environment]] drawer.
==Usage==
==Usage==



Revision as of 19:52, 10 November 2022


pen [▼] is a code block part of the Environment drawer.

Usage

pen [▼](s) adjusts the pen tool. If the pen is down, the agent stamps the terrain at each position as it moves. If the pen is up, the agent does not stamp the terrain.

Syntax

pen [Dropdown: Down/Up]

Nuances

An important difference between and create [_] [▼](s) each do is that create [_] [▼](s) each do allows a section of code to run individually for each agent that is created. only creates agents with the default traits in the center of Spaceland.

create [_] [▼](s) each do can be useful for randomizing traits and scattering agents without effecting others.

Related Blocks

Relevant Video Resources

Relevant Activities