Skip to contents

Checks if the walker's current position is on a black pixel.

Usage

touches_black(walker, grid, boundary = c("terminate", "wrap"))

Arguments

walker

List. Walker object.

grid

Numeric matrix. The simulation grid.

boundary

Character. Boundary condition ("terminate" or "wrap").

Value

Logical. TRUE if walker is on a black pixel.