Visualizers¶
Controller Visualizers¶
- class neuroarcade.visualizers.controls.InputVisualization(size=300, offset=60)¶
Bases:
object- update(new_direction: Direction) ndarray¶
Function called every game tick to update the visualization based in the response of the controller or the transform.
- Parameters:
new_direction (Direction) – Direction received, to be highlighted.
- Returns:
New frame showing the updated visualization.
- Return type:
np.ndarray