📜  pixjs circle - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:58.483000             🧑  作者: Mango

代码示例1
var app = new PIXI.Application({
  width: window.innerWidth,
  height: window.innerHeight,
  backgroundColor: 0x2c3e50
});
document.body.appendChild(app.view);

const gr  = new PIXI.Graphics();
gr.beginFill(0xffffff);
gr.drawCircle(30, 30, 30);
gr.endFill();
app.stage.addChild(gr)