arx-level-generator
Version:
A tool for creating Arx Fatalis maps
33 lines (32 loc) • 953 B
TypeScript
import { ArxColor } from 'arx-convert/types';
import { Color as ThreeJsColor } from 'three';
export declare enum Alpha {
Transparent = 0,
Opaque = 1
}
/**
* Three JS's color is not being used as it doesn't come with an alpha channel
*/
export declare class Color {
r: number;
g: number;
b: number;
a: number;
constructor(r: number, g: number, b: number, a?: number);
static fromCSS(color: string): Color;
static fromArxColor({ r, g, b, a }: ArxColor): Color;
static fromThreeJsColor({ r, g, b }: ThreeJsColor): Color;
toArxColor(): ArxColor;
toScriptColor(): string;
clone(): Color;
getHex(): number;
lighten(percent: number): this;
darken(percent: number): this;
static get red(): Color;
static get green(): Color;
static get blue(): Color;
static get white(): Color;
static get black(): Color;
static get yellow(): Color;
static get transparent(): Color;
}