Skip to main content

Shapes

import { Shapes } from "//packages.education/agent"
// Usage: Shapes.Arrow;
// -- OR --
import { Arrow } from "//packages.education/agent/shapes";
// Usage: Arrow;

Shapes​

Arrow​

An arrow shape pointing towards the heading of an Agent. This is the default shape for new Agents.

Circle​

A simple circle shape. It does not indicate the heading of the Agent.

Square​

A simple square shape. It does not indicate the heading of the Agent.

Turtle​

A styleized turtle that faces the heading of the Agent. Its head and legs are always green, while its shell is the color of the Agent.