<canvas id="main"></canvas>
* {padding: 0; margin: 0}
const app = new PIXI.Application({
view: document.getElementById('main'),
width: 200,
height: 200,
antialias: true,
transparent: false,
backgroundColor: 0x00CC99,
});
const container = new PIXI.Container();
app.stage.addChild(container);
const PIXIText = new PIXI.Text('這是一段話');
container.addChild(PIXIText);
This Pen doesn't use any external CSS resources.