lunchpad
Version:
interface for the novation launchpad mini, for node and the browser
23 lines (22 loc) • 527 B
TypeScript
declare class Color {
static BLACK: Color;
static RED: Color;
static GREEN: Color;
static AMBER: Color;
private red;
private green;
private code;
static getRandomColor(): Color;
static getColor(red: number, green: number): Color;
constructor(red: number, green: number);
lighter(): Color;
darker(): Color;
getRed(): number;
getGreen(): number;
getCode(): number;
getRgb(): string;
private calcCode;
private pad;
private clamp;
}
export default Color;