Skip to content
pixi-silk
GitHub repository
Interface

ProgressiveBlur

import type { ProgressiveBlur } from 'pixi-silk';

A blur that changes across the shape, like Figma’s progressive layer blur. The radius goes from from at one edge of the shape to to at the opposite edge, along angle.

Properties#

PropertyTypeDescriptionDefined in
angle?numberDirection from the start edge to the end edge, in radians. Default Math.PI / 2 (top to bottom).SilkGraphics.ts:55
fromnumberBlur at the start edge (standard deviation, local units).SilkGraphics.ts:51
tonumberBlur at the end edge.SilkGraphics.ts:53