Terrain Color: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(Marked this version for translation)
Line 2: Line 2:
<translate>
<translate>


<!--T:1-->
<section begin=image/>
<section begin=image/>
[[File:Terrain color.png|alt=Terrain color|thumb]]
[[File:Terrain color.png|alt=Terrain color|thumb]]
Line 7: Line 8:
<section begin="name" />'''<code>terrain color</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer.
<section begin="name" />'''<code>terrain color</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer.


<!--T:2-->
== Usage==
== Usage==
<p id="tooltip"><code>terrain color</code> refers to the color of the terrain that the [[agent]] is currently on.</p>
<p id="tooltip"><code>terrain color</code> refers to the color of the terrain that the [[agent]] is currently on.</p>


===Syntax===
===Syntax=== <!--T:3-->


<!--T:4-->
<code>[Textbox Insert] terrain color</code>
<code>[Textbox Insert] terrain color</code>


<!--T:5-->
==Common Uses==
==Common Uses==
This is commonly used as part of a conditional statement: for example, if an agent's color matches the color of the terrain, then the agent should perform a certain action.  
This is commonly used as part of a conditional statement: for example, if an agent's color matches the color of the terrain, then the agent should perform a certain action.  


==Nuances==
==Nuances== <!--T:6-->


<!--T:7-->
==Related Blocks==
==Related Blocks==
[[Category:Environment]]
[[Category:Environment]]
[[Category:Code Block]]
[[Category:Code Block]]
</translate>
</translate>

Revision as of 14:47, 27 June 2023

Other languages:


Terrain color

terrain color is a code block part of the Environment drawer.

Usage

terrain color refers to the color of the terrain that the agent is currently on.

Syntax

[Textbox Insert] terrain color

Common Uses

This is commonly used as part of a conditional statement: for example, if an agent's color matches the color of the terrain, then the agent should perform a certain action.

Nuances

Related Blocks