The background color alpha. Setting this to 0 will make the canvas transparent.
The background color alpha. Setting this to 0 will make the canvas transparent.
The background color to fill if not transparent
The background color to fill if not transparent
Same as view.height, actual number of pixels in the canvas by vertical.
Same as view.width, actual number of pixels in the canvas by horizontal.
Removes everything from the renderer and optionally removes the Canvas DOM element.
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Useful function that returns a texture of the display object that can then be used to create sprites This can be quite useful if your displayObject is complicated and needs to be reused multiple times.
The displayObject the object will be generated from.
The scale mode of the texture.
The resolution / device pixel ratio of the texture being generated.
A texture of the graphics object.
Initialize the plugins.
The dictionary of statically saved plugins.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Add a one-time listener for a given event.
Remove all listeners, or those of the specified event.
Remove the listeners of a given event.
Resizes the screen and canvas to the specified width and height. Canvas dimensions are multiplied by resolution.
The new width of the screen.
The new height of the screen.
Generated using TypeDoc
The AbstractRenderer is the base for a PixiJS Renderer. It is extended by the {@link PIXI.CanvasRenderer} and PIXI.Renderer which can be used for rendering a PixiJS scene.
PIXI