How to clear graphics

An example showing how to clear graphics in PIXI.js 3.0 using Tizen 2.3.
var g = new PIXI.Graphics();
g.beginFill(0x000000);
g.drawRect(0, 0, 100, 100);
g.endFill();

// clear
g.clear();

Responses

0 Replies