WebGL Only. Whether to enable anti-aliasing. This may affect performance.
PIXI.IRendererOptions
Optional
autoWhether the CSS dimensions of the renderer's view should be resized automatically.
PIXI.IRendererOptions
Optional
backgroundAlias for PIXI.IRendererOptions.backgroundColor
PIXI.IRendererOptions
Transparency of the background color, value from 0
(fully transparent) to 1
(fully opaque).
PIXI.IRendererOptions
The background color used to clear the canvas. See PIXI.ColorSource for accepted color values.
PIXI.IRendererOptions
Whether to clear the canvas before new render passes.
PIXI.IRendererOptions
WebGL Only. User-provided WebGL rendering context object.
PIXI.IRendererOptions
Optional
eventThe event features that are enabled by the EventSystem.
7.2.0
Optional
eventThe default event mode for all display objects.
7.2.0
Optional
forceForce CanvasRenderer even if WebGL is supported. Only available with pixi.js-legacy.
false
Optional
heightThe height of the renderer's view.
PIXI.IRendererOptions
Whether to log the version and type information of renderer to console.
PIXI.IRendererOptions
WebGL Only. A hint indicating what configuration of GPU is suitable for the WebGL context,
can be 'default'
, 'high-performance'
or 'low-power'
.
Setting to 'high-performance'
will prioritize rendering performance over power consumption,
while setting to 'low-power'
will prioritize power saving over rendering performance.
PIXI.IRendererOptions
WebGL Only. Whether the compositor will assume the drawing buffer contains colors with premultiplied alpha.
PIXI.IRendererOptions
WebGL Only. Whether to enable drawing buffer preservation. If enabled, the drawing buffer will preserve
its value until cleared or overwritten. Enable this if you need to call toDataUrl
on the WebGL context.
PIXI.IRendererOptions
Optional
resolutionThe resolution / device pixel ratio of the renderer.
PIXI.IRendererOptions
Optional
useDeprecated since 7.0.0, use premultipliedAlpha
and backgroundAlpha
instead.
Pass-through value for canvas' context attribute alpha
. This option is for cases where the
canvas needs to be opaque, possibly for performance reasons on some older devices.
If you want to set transparency, please use backgroundAlpha
.
WebGL Only: When set to 'notMultiplied'
, the canvas' context attribute alpha
will be
set to true
and premultipliedAlpha
will be to false
.
since 7.0.0
PIXI.IRendererOptions
Optional
viewThe canvas to use as the view. If omitted, a new canvas will be created.
PIXI.IRendererOptions
Optional
widthThe width of the renderer's view.
PIXI.IRendererOptions
Generated using TypeDoc
Renderer options supplied to
autoDetectRenderer
.Memberof
PIXI