UNPKG

lifehash

Version:

TypeScript/JavaScript implementation of LifeHash, a visual hash algorithm

11 lines (10 loc) 254 B
type Pixel = [number, number, number, number]; export declare class Bitmap { pixel: Pixel[][]; constructor(width: number, height: number); subsample(n: number): void; dataURL(): string; width: number; height: number; } export {};