Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ApplicationOptions

Hierarchy

Index

Properties

Optional antialias

antialias: boolean

sets antialias (only applicable in chrome at the moment) [default=false]

Optional autoResize

autoResize: boolean
deprecated

Optional autoStart

autoStart: boolean

automatically starts the rendering after the construction. Note that setting this parameter to false does NOT stop the shared ticker even if you set options.sharedTicker to true in case that it is already started. Stop it by your own.

Optional backgroundColor

backgroundColor: number

The background color of the rendered area (shown if not transparent) [default=0x000000]

Optional clearBeforeRender

clearBeforeRender: boolean

This sets if the renderer will clear the canvas or not before the new render pass. [default=true]

Optional context

context: WebGLRenderingContext

Deprecated

Optional forceCanvas

forceCanvas: boolean

prevents selection of WebGL renderer, even if such is present [default=false]

Optional forceFXAA

forceFXAA: boolean

forces FXAA antialiasing to be used over native FXAA is faster, but may not always look as great ** webgl only** [default=false]

Optional height

height: number

the height of the renderers view [default=600]

Optional legacy

legacy: boolean

true to ensure compatibility with older / less advanced devices. If you experience unexplained flickering try setting this to true. webgl only [default=false]

Optional powerPreference

powerPreference: "high-performance"

Parameter passed to webgl context, set to "high-performance" for devices with dual graphics card

Optional preserveDrawingBuffer

preserveDrawingBuffer: boolean

enables drawing buffer preservation, enable this if you need to call toDataUrl on the webgl context [default=false]

Optional resolution

resolution: number

The resolution / device pixel ratio of the renderer, retina would be 2 [default=1]

Optional roundPixels

roundPixels: boolean

If true Pixi will Math.floor() x/ y values when rendering, stopping pixel interpolation. [default=false]

Optional sharedLoader

sharedLoader: boolean

true to use PIXI.loaders.shared, false to create new Loader.

Optional sharedTicker

sharedTicker: boolean

true to use PIXI.ticker.shared, false to create new ticker. [default=false]

Optional transparent

transparent: boolean

If the render view is transparent, [default=false]

Optional view

view: HTMLCanvasElement

the canvas to use as a view, optional

Optional width

width: number

the width of the renderers view [default=800]

Generated using TypeDoc