ImageEnvironment
This environment loads an image from the classpath or the file system, and marks as obstacles all the pixels of a given color.
Parameters
the incarnation to be used.
the path where to load the image from: a classpath resource or a local file path.
zoom level.
delta X position.
delta Y position.
integer representing the RGB color of the obstacles in the image, encoded as in Color.getRGB.
Type Parameters
concentration type
Throws
if the image cannot be read.
Constructors
Types
Default values for the ImageEnvironment parameters.
Properties
A factory of shapes compatible with this environment.
Functions
Gets the heading of a node as a direction vector.
Gets all nodes whose shape.intersect is true for the given shape.
Gets the shape of a node relatively to its position and heading in the environment.
Creates an euclidean position from the given coordinates.
Sets the heading of a node.