Skip to content
GitHub repository
Function

createSilkApp

function createSilkApp(options: SilkAppOptions): Promise<SilkApp>;

Creates a Pixi application tuned for smooth vector output:

  • WebGL2 and no MSAA (analytic AA does the job, MSAA would only cost bandwidth),
  • backing store sized from devicePixelContentBoxSize, so every canvas pixel maps to exactly one device pixel even at fractional DPRs (1.25, 1.5, 2.625 …) - no resampling blur,
  • follows DPR changes (moving the window between displays, browser zoom),
  • unrounded coordinates for sub-pixel smooth motion,
  • filters that render at the screen resolution instead of 1x.

Parameters#

ParameterType
optionsSilkAppOptions

Returns#

Promise<SilkApp>