Interface: IRendererOptions

PIXI.IRendererOptions

Renderer options supplied to constructor.

Properties:
Name Type Description
antialias boolean

Antialias turn on for WebGL, impacts performance

autoDensity boolean

Consider the resolution when resizing the view

background number | string

Alias for backgroundColor

backgroundAlpha number

Background color alpha

backgroundColor number | string

The background color, can be number (0xff0000) or string (#f00)

clearBeforeRender boolean

Clear the draw before render

context IRenderingContext

User-proviced rendering context object

height number

Height of the view

hello boolean

Console log the version and type of Renderer

powerPreference WebGLPowerPreference

Power preference, for multiple GPUs

premultipliedAlpha boolean

Premultiply alpha

preserveDrawingBuffer boolean

Preserve the drawing buffer

resolution number

Base resolution for the Renderer

useContextAlpha boolean | "notMultiplied"

Use premultipliedAlpha and backgroundAlpha instead

view PIXI.ICanvas

Canvas or OffscreenCanvas to use, will be created if omitted

width number

Width of the view

Extends

  • GlobalMixins.IRendererOptions

Members

antialias boolean

Antialias turn on for WebGL, impacts performance

autoDensity boolean

Consider the resolution when resizing the view

background number | string

Alias for backgroundColor

backgroundAlpha number

Background color alpha

backgroundColor number | string

The background color, can be number (0xff0000) or string (#f00)

clearBeforeRender boolean

Clear the draw before render

User-proviced rendering context object

height number

Height of the view

hello boolean

Console log the version and type of Renderer

powerPreference WebGLPowerPreference

Power preference, for multiple GPUs

premultipliedAlpha boolean

Premultiply alpha

preserveDrawingBuffer boolean

Preserve the drawing buffer

resolution number

Base resolution for the Renderer

useContextAlpha boolean | "notMultiplied" Deprecated : since 7.0.0

Use premultipliedAlpha and backgroundAlpha instead

Canvas or OffscreenCanvas to use, will be created if omitted

width number

Width of the view