import { mat2d, vec2 } from 'linearly'; type Distort = (p: vec2) => mat2d; /** * A collection of functions to generate distortion functions. * @category Modules */ export declare namespace Distort { function fromPointTransformer(fn: (p: vec2) => vec2): Distort; /** * Add a sine wave distortion to the given point. * @param amplitude The amplitude of the wave. * @param width The wavelength of the wave. * @param phase The phase of the wave in degrees. * @param angle The angle of the wave in degrees. * @param origin The origin of the wave. * @returns The wave distortion function. */ function wave(amplitude: number, width: number, phase?: number, angle?: number, origin?: vec2): Distort; /** * Add a twirl distortion to the given point. * @param center The center of the twirl. * @param radius The radius of the twirl. * @param angle The angle of the twirl in degrees. * @param ramp The ramp function that maps the distance ratio to the twirl amplitude. * @returns The twirl distortion function. */ function twirl(center: vec2, radius: number, angle: number, ramp?: (t: number) => number): Distort; } export {}; //# sourceMappingURL=Distort.d.ts.map