function cleanExtractedImagesCache(): void
Removes temporary files created with onExtractImage
ImageFilter prop.
function registerFilter<Config>(
name: string,
shape: Shape,
transform: (config: Config) => object
): React.FC<ViewProps & Config>
Should be used to create custom filters.
function rgbaToRgb(RGB_background: string, RGBA_color: string): string
function concatColorMatrices(matrices: Matrix[]): Matrix
PathStep generation
function moveTo(x: Distance, y: Distance): PathStep
function lineTo(x: Distance, y: Distance): PathStep
function quadTo(x1: Distance, y1: Distance, x2: Distance, y2: Distance): PathStep
function cubicTo(
x1: Distance,
y1: Distance,
x2: Distance,
y2: Distance,
x3: Distance,
y3: Distance
): PathStep
function closePath(): PathStep
function normal(): Matrix
function rgba(
red: number = 1,
green: number = 1,
blue: number = 1,
alpha: number = 1
): Matrix
function saturate(amount: number = 1): Matrix
function hueRotate(amount: number = 0): Matrix
function luminanceToAlpha(): Matrix
function invert(): Matrix
function grayscale(amount: number = 1): Matrix
function sepia(amount: number = 1): Matrix
function nightvision(): Matrix
function warm(): Matrix
function cool(): Matrix
function brightness(amount: number = 1): Matrix
function contrast(amount: number = 1): Matrix
function temperature(amount: number = 1): Matrix
function tint(amount: number = 0): Matrix
function threshold(amount: number = 0): Matrix
function technicolor(): Matrix
function polaroid(): Matrix
function toBGR(): Matrix
function kodachrome(): Matrix
function browni(): Matrix
function vintage(): Matrix
function night(amount: number = 0.1): Matrix
function predator(amount: number = 1): Matrix
function lsd(): Matrix
function colorTone(
desaturation: number = 0.2,
toned: number = 0.15,
lightColor: string = "#FFE580",
darkColor: string = "#338000"
): Matrix
function duoTone(
firstColor: string = "#FFE580",
secondColor: string = "#338000"
): Matrix
function protanomaly(): Matrix
function deuteranomaly(): Matrix
function tritanomaly(): Matrix
function protanopia(): Matrix
function deuteranopia(): Matrix
function tritanopia(): Matrix
function achromatopsia(): Matrix
function achromatomaly(): Matrix