UNPKG

fast-average-color

Version:

A simple library that calculates the average color of images, videos and canvas in browser environment.

4 lines (3 loc) 391 B
import type { FastAverageColorOptions, FastAverageColorRgba } from '../types'; export declare function getDefaultColor(options: FastAverageColorOptions): FastAverageColorRgba; export declare function getOption<T extends keyof FastAverageColorOptions>(options: FastAverageColorOptions, name: T, defaultValue: NonNullable<FastAverageColorOptions[T]>): NonNullable<FastAverageColorOptions[T]>;