Terrain Color/en: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 3: | Line 3: | ||
<section begin=image/> | <section begin=image/> | ||
[[File:Terrain color.png|alt=Terrain color|thumb]] | [[File:Terrain color.png|alt=Terrain color|thumb]] | ||
<section end=image/> | <section end=image/><p id="tooltip">Returns the color of the terrain the agent is currently on.</p> | ||
<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. | ||
== Usage== | == Usage== | ||
<code>terrain color</code> refers to the color of the terrain that the [[agent]] is currently on. | |||
===Syntax=== | ===Syntax=== |
Revision as of 14:58, 8 August 2023
Returns the color of the terrain the agent is currently on.
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.