Create a new
ASCIIRenderer by passing in the
GridEnvironment you want to be rendered.
Points to the
GridEnvironment that this
ASCIIRenderer is tied to. This is automatically set when the
ASCIIRenderer is created.
Mount this renderer to a DOM element. Pass either a string representing a CSS selector matching the element or the element itself.
// mounts the renderer to the element with the ID `container` renderer.mount('#container'); // mounts the renderer to the element itself const container = document.getElementById('container'); renderer.mount(container);
Renders the contents of the
Generated using TypeDoc
Agents in a
Agents are rendered using their
"value"data (a single character). Since v0.4.0, this class has been deprecated, and it will be removed entirely in v0.6.0.