UNPKG

malwoden

Version:

![alt text](./coverage/badge-lines.svg) ![alt text](./coverage/badge-statements.svg) ![alt text](./coverage/badge-functions.svg) ![alt text](./coverage/badge-branches.svg)

31 lines (30 loc) 958 B
import { Color } from "./color"; /** * Represents a glyph to be drawn to the screen. */ export declare class Glyph { readonly char: number; readonly fore: Color; readonly back: Color; /** * Creates a glyph from a charCode. * * @param char - A number representing a charCode. * @param fore - A foreground color (default white) * @param back - A background color (default black) */ static fromCharCode(char: number, fore?: Color, back?: Color): Glyph; /** * Creates a Glyph from a single character. * * @param char - A single character. * @param fore - A foreground color (default white) * @param back - A background color (default black) */ constructor(char: string, fore?: Color, back?: Color); /** * Checks to see if two glyphs are equal. * @param other Glyph - The other glyph. */ isEqual(other: any): boolean; }