import type { SilkGraphicsOptions } from 'pixi-silk';
Per-object rendering settings of a SilkGraphics: dithering, anti-aliasing width and hairline threshold.
Properties#
| Property | Type | Description | Defined in |
|---|
aaWidth? | number | AA ramp width in device pixels. 1 = crisp box filter. Default 1. | SilkGraphics.ts:191 |
batch? | boolean | Set false to keep this object out of batches: it gets a draw call of its own. Only matters after enableSilkBatching(). Default true. | SilkGraphics.ts:200 |
dither? | number | Dither amplitude in 8-bit steps (0 disables). Applied to gradients and blurs only. Default 1. | SilkGraphics.ts:189 |
label? | string | Pixi label of the object, for debugging. Default SilkGraphics. | SilkGraphics.ts:195 |
minStrokePx? | number | Strokes thinner than this (device px) keep this width and fade instead. Default 1. | SilkGraphics.ts:193 |