Skip to content
pixi-silk
GitHub repository
Interface

SilkGraphicsOptions

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

Per-object rendering settings of a SilkGraphics: dithering, anti-aliasing width and hairline threshold.

Properties#

PropertyTypeDescriptionDefined in
aaWidth?numberAA ramp width in device pixels. 1 = crisp box filter. Default 1.SilkGraphics.ts:191
batch?booleanSet 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?numberDither amplitude in 8-bit steps (0 disables). Applied to gradients and blurs only. Default 1.SilkGraphics.ts:189
label?stringPixi label of the object, for debugging. Default SilkGraphics.SilkGraphics.ts:195
minStrokePx?numberStrokes thinner than this (device px) keep this width and fade instead. Default 1.SilkGraphics.ts:193