narraleaf-react
Version:
A React visual novel player framework
26 lines (25 loc) • 697 B
TypeScript
import type { Color, HexColor } from "../types";
import { Word } from "../elements/character/word";
export declare class RGBColor {
static isHexString(color: any): color is HexColor;
static fromHex(hex: HexColor): RGBColor;
r: number;
g: number;
b: number;
a: number;
constructor(r: number, g: number, b: number, a?: number);
toString(): string;
toHex(): string;
}
/**
* Alias for {@link Word.color}
*/
export declare function c(text: string | Word, color: Color): Word;
/**
* Alias for {@link Word.bold}
*/
export declare function b(text: string | Word): Word;
/**
* Alias for {@link Word.italic}
*/
export declare function i(text: string | Word): Word;