Show:

Matter.RenderPixi

Deprecated: the Matter.RenderPixi module will soon be removed from the Matter.js core. It will likely be moved to its own repository (but maintenance will be limited).

The Matter.RenderPixi module is an example renderer using pixi.js. See also Matter.Render for a canvas based renderer.

Methods

Matter.RenderPixi._createBodyPrimitive

(render, body)
→ PIXI.Graphics deprecated private

Creates a body primitive

Parameters

Returns

PIXI.Graphics

graphics

Matter.RenderPixi._createBodySprite

(render, body)
→ PIXI.Sprite deprecated private

Creates a body sprite

Parameters

Returns

PIXI.Sprite

sprite

Matter.RenderPixi._getTexture

(render, imagePath)
→ PIXI.Texture deprecated private

Gets the requested texture (a PIXI.Texture) via its path

Parameters

Returns

PIXI.Texture

texture

Matter.RenderPixi.body

(engine, body)
deprecated

Description

Parameters

Matter.RenderPixi.clear

(render)
deprecated

Clears the scene graph

Parameters

Matter.RenderPixi.constraint

(engine, constraint)
deprecated

Description

Parameters

Matter.RenderPixi.create

(options)
RenderPixi deprecated

Creates a new Pixi.js WebGL renderer

Parameters

Returns

RenderPixi

A new renderer

Matter.RenderPixi.run

(render)
deprecated

Continuously updates the render canvas on the requestAnimationFrame event.

Parameters

Matter.RenderPixi.setBackground

(render, background)
deprecated

Sets the background of the canvas

Parameters

Matter.RenderPixi.stop

(render)
deprecated

Ends execution of Render.run on the given render, by canceling the animation frame request event loop.

Parameters

Matter.RenderPixi.world

(engine)
deprecated

Description

Parameters

Item Index

Methods

0.13.0