Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Glyph

Represents a glyph to be drawn to the screen.

Hierarchy

  • Glyph

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a Glyph from a single character.

    Parameters

    • char: string

      A single character.

    • Default value fore: Color = Color.White

      A foreground color (default white)

    • Default value back: Color = Color.Black

      A background color (default black)

    Returns Glyph

Properties

Readonly back

back: Color

Readonly char

char: number

Readonly fore

fore: Color

Methods

isEqual

  • isEqual(other: any): boolean
  • Checks to see if two glyphs are equal.

    Parameters

    • other: any

      Glyph - The other glyph.

    Returns boolean

Static fromCharCode

  • Creates a glyph from a charCode.

    Parameters

    • char: number

      A number representing a charCode.

    • Default value fore: Color = Color.White

      A foreground color (default white)

    • Default value back: Color = Color.Black

      A background color (default black)

    Returns Glyph

Generated using TypeDoc