Name | Type | Description |
---|---|---|
renderer |
PIXI.CanvasRenderer |
A reference to the current renderer |
Implements
Members
_projTransform PIXI.Matrix
Projection transform, passed in render() stored here
- Default Value:
- undefined
activeContext CrossPlatformCanvasRenderingContext2D
The currently active canvas 2d context (could change with renderTextures)
Tracks the blend modes useful for this renderer.
rootContext CrossPlatformCanvasRenderingContext2D
The root canvas 2d context that everything is drawn with.
The canvas property used to set the canvas smoothing property.
- Default Value:
- "imageSmoothingEnabled"
Methods
Clear the canvas of renderer.
Name | Type | Attributes | Description |
---|---|---|---|
clearColor |
string |
<optional> |
Clear the canvas with this color, except the canvas is transparent. |
alpha |
number |
<optional> |
Alpha to apply to the background fill color. |
initiates the system
Checks if blend mode has changed.
Sets the blend mode of the renderer.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
blendMode |
number |
See PIXI.BLEND_MODES for valid values. |
||
readyForOuterBlend |
boolean |
<optional> |
false |
Some blendModes are dangerous, they affect outer space of sprite.
Pass |
Sets matrix of context. called only from render() methods takes care about resolution
Name | Type | Attributes | Description |
---|---|---|---|
transform |
PIXI.Matrix |
world matrix of current element |
|
roundPixels |
boolean |
<optional> |
whether to round (tx,ty) coords |
localResolution |
number |
<optional> |
If specified, used instead of |