Skip to main content Link Search Menu Expand Document (external link)

Field Class

Properties

field.x: number (read-only)

The X coordinate of the Field

field.y: number (read-only)

The Y coordinate of the Field

field.color: string

The color of the Field, must be a valid CSS color

field.neighbors: array (read-only)

The array of the up to 8 neighboring Fields

field.neighborsInRadius(radius: number): array (read-only)

The array Fields within the given radius, radius must be positive