Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Display

Represents glyph data, agnostic to how it is rendered.

Hierarchy

  • Display

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Display(width: number, height: number): Display
  • Creates a new Display

    Parameters

    • width: number

      The number of glyphs wide the display is

    • height: number

      The number of glyphs tall the display is

    Returns Display

Properties

Readonly height

height: number

Readonly width

width: number

Methods

render

  • Calls the callback with each x/y/glyph pair. The terminal needs to decide how to render the display. The callback is called bottom to top, right to left.

    Parameters

    Returns void

setGlyph

  • Sets a single glyph in the display.

    Parameters

    • pos: Vector2

      Vector2 - The position of the Glyph

    • glyph: Glyph

      Glyph - The Glyph

    Returns void

size

Generated using TypeDoc