Pen

From StarLogo Nova Wiki
Revision as of 19:52, 10 November 2022 by Admin (talk | contribs)


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