Observations

Set of tools for visualizing observations and simulations.

phyre.creator.constants.NUM_COLORS = 7

Number of different colors used for objects in phyre simulations.

phyre.creator.constants.SCENE_HEIGHT = 256

Height of scene during simulation in pixels.

phyre.creator.constants.SCENE_WIDTH = 256

Width of scene during simulation in pixels.

phyre.observations_to_float_rgb(scene: numpy.ndarray, user_input: Tuple[Tuple[int, int], ...] = (), is_solved: Optional[bool] = None) → numpy.ndarray

Convert an observation as returned by a simulator to an image.

phyre.observations_to_uint8_rgb(scene: numpy.ndarray, user_input: Tuple[Tuple[int, int], ...] = (), is_solved: Optional[bool] = None) → numpy.ndarray

Convert an observation as returned by a simulator to an image.