declarations.d.ts

declare function box(x: number, y: number, width: number, height: number, color?: string): void;
declare function rect(x: number, y: number, width: number, height: number, color?: string): void;
declare function rand(from: number, to: number): number;
declare function center(): number;
declare function width(): number;
declare function height(): number;
declare function randomColor(randomOpacity: boolean = true): string;