Terrain Color: Difference between revisions
(Marked this version for translation) |
mNo edit summary |
||
Line 11: | Line 11: | ||
<!--T:2--> | <!--T:2--> | ||
== Usage== | ==Usage== | ||
<code>terrain color</code> refers to the color of the terrain that the [[agent]] is currently on. | <code>terrain color</code> refers to the color of the terrain that the [[agent]] is currently on. | ||
==Syntax== <!--T:3--> | |||
<!--T:4--> | <!--T:4--> |
Revision as of 19:18, 10 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.