Pen/es: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(Updating to match new version of source page)
 
Line 28: Line 28:
Entradas:
Entradas:
#ya sea "arriba" o "abajo" en el menú desplegable
#ya sea "arriba" o "abajo" en el menú desplegable
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:pen_example.gif|alt=Pen example gif|thumb]]
[[File:pen_example.png|alt=Pen example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
This is an example of the flower turtles activity. Using the pen down block it is possible to track the movement of the turtles such that a flower appears on the terrain.  Note that the size of the trail a turtle leaves using pen down is proportional to the size of the turtle.
</div>


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

Latest revision as of 20:36, 11 August 2023

Other languages:
pen


pen [▼] is a bloque de código part of the ambiente drawer.

Usage

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.

Sintaxis

The Pen Block

Entradas:

  1. ya sea "arriba" o "abajo" en el menú desplegable

Example

Pen example gif
Pen example code

This is an example of the flower turtles activity. Using the pen down block it is possible to track the movement of the turtles such that a flower appears on the terrain. Note that the size of the trail a turtle leaves using pen down is proportional to the size of the turtle.

Nuances

An important difference between pen [▼] and stamp [_] is that pen [▼] allows for continuous marking of the terrain that always follows the agent's movement.

Related Blocks

Relevant Video Resources

Relevant Activities