Skip to content
GitHub repository
Interface

SilkGraphicsOptions

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:93
dither?numberDither amplitude in 8-bit steps (0 disables). Applied to gradients and blurs only. Default 1.SilkGraphics.ts:91
label?stringPixi label of the object, for debugging. Default SilkGraphics.SilkGraphics.ts:97
minStrokePx?numberStrokes thinner than this (device px) keep this width and fade instead. Default 1.SilkGraphics.ts:95