Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CanvasTerminal

Renders a display by writing fonts to a canvas.

Hierarchy

Index

Constructors

constructor

Properties

backColor

backColor: Color

Readonly display

display: Display

Readonly font

font: Font

foreColor

foreColor: Color

Readonly height

height: number

Readonly scale

scale: number = window.devicePixelRatio

Readonly width

width: number

Methods

clear

  • clear(): void

delete

  • delete(): void

drawCharCode

  • drawCharCode(pos: Vector2, charCode: number, foreColor?: Color, backColor?: Color): void

drawGlyph

fill

render

  • render(): void

size

windowToTilePoint

writeAt

Generated using TypeDoc