the width of the canvas view
the height of the canvas view
The optional renderer parameters
Whether the render view should be resized automatically
The background color to fill if not transparent
Tracks the blend modes useful for this renderer.
This sets if the CanvasRenderer will clear the canvas or not before the new render pass.
This sets if the CanvasRenderer will clear the canvas or not before the new render pass. If the scene is NOT transparent Pixi will use a canvas sized fillRect operation every frame to set the canvas background color. If the scene is transparent Pixi will use clearRect to clear the canvas every frame. Disable this by setting this to false. For example if your game has a canvas filling background image you often don't need this set.
The canvas 2d context that everything is drawn with.
the height of the canvas view
Instance of a CanvasMaskManager, handles masking when using the canvas renderer.
The optional renderer parameters
The value of the preserveDrawingBuffer flag affects whether or not the contents of the stencil buffer is retained after rendering.
Boolean flag controlling canvas refresh.
The resolution of the renderer
If true Pixi will Math.floor() x/y values when rendering, stopping pixel interpolation.
If true Pixi will Math.floor() x/y values when rendering, stopping pixel interpolation. Handy for crisp pixel art and speed on legacy devices.
The canvas property used to set the canvas smoothing property.
Whether the render view is transparent
The type of the renderer.
The type of the renderer. Default: PIXI.RENDERER_TYPE.UNKNOWN
the width of the canvas view
The CanvasRenderer draws the scene and all its content onto a 2d canvas. This renderer should be used for browsers that do not support webGL. Don't forget to add the CanvasRenderer.view to your DOM or you will not see anything :)