scriptable-testlab
Version:
A lightweight, efficient tool designed to manage and update scripts for Scriptable.
41 lines (38 loc) • 1.03 kB
TypeScript
import { AbsColor } from 'scriptable-abstract';
interface ColorMockState {
hex: string;
red: number;
green: number;
blue: number;
alpha: number;
}
declare class MockColor extends AbsColor<ColorMockState> {
constructor(hex?: string, alpha?: number);
get hex(): string;
set hex(value: string);
get red(): number;
set red(value: number);
get green(): number;
set green(value: number);
get blue(): number;
set blue(value: number);
get alpha(): number;
set alpha(value: number);
static black(): Color;
static darkGray(): Color;
static lightGray(): Color;
static white(): Color;
static gray(): Color;
static red(): Color;
static green(): Color;
static blue(): Color;
static cyan(): Color;
static yellow(): Color;
static magenta(): Color;
static orange(): Color;
static purple(): Color;
static brown(): Color;
static clear(): Color;
static dynamic(dark: Color, _light: Color): Color;
}
export { MockColor };