Interfaces

AlphaThresholdProps

Cuts translucency to a hard edge: alpha below threshold becomes fully transparent, alpha at or above it fully opaque. Colours are untouched.

tgfx's own, with no Skia equivalent. Useful for turning a blurred alpha into a solid shape - a sticker outline, a metaball - by blurring first and thresholding after, which the ordering rule below makes expressible.

Properties

ref?

optional ref?: NodeHandle;

A handle from useNode(), for patching this filter without a render.


threshold?

optional threshold?: Animated<number>;

0–1. Defaults to 0.5. Animatable.

On this page