# NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

# ants.Ant.trail[]

## Syntax

    ant.trail[i]

## Description

A list of pheromones marking the path from the food source to the colony. Each ant that is carrying food leaves a trail.

- ant.hasfood: True when the ant is carrying food and leaving a trail
- ant.trail[i].x: a pheromone's x position
- ant.trail[i].y: a pheromone's y position
- ant.trail[i].strength: a pheromone's scent strength