You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
726 B
23 lines
726 B
import { Interpolate } from '../types';
|
|
/**
|
|
* 返回一个线性插值器,接受数字
|
|
* @param a 任意值
|
|
* @param b 任意值
|
|
* @returns 线性插值器
|
|
*/
|
|
export declare const createInterpolateNumber: Interpolate<number>;
|
|
export declare const createInterpolateColor: Interpolate<string>;
|
|
/**
|
|
* 返回一个线性插值器,接受数字和颜色
|
|
* @param a 任意值
|
|
* @param b 任意值
|
|
* @returns 线性插值器
|
|
*/
|
|
export declare const createInterpolateValue: Interpolate<number | string>;
|
|
/**
|
|
* 返回一个 round 线性差值器,对输出值进行四舍五入
|
|
* @param a 任意值
|
|
* @param b 任意值
|
|
* @returns 线性插值器
|
|
*/
|
|
export declare const createInterpolateRound: Interpolate<number>;
|
|
|