Open jamesqm opened 3 years ago
Hi guys, I'm trying to use PIXI.Sketch but it doesn't show anything at all. Here is the code:
<GLView style={{ flex: 1, backgroundColor: "white" }} onContextCreate={async context => { const app = new PIXI.Application({ context, backgroundColor: "ff0000", width: 200, height: 200 }); const sketch = new PIXI.Sketch({context, strokeColor: "ffffff", strokeWidth: 5,strokeAlpha: 1}); app.stage.addChild(sketch); }} />
How do you use PIXI.Sketch?
Hi guys, I'm trying to use PIXI.Sketch but it doesn't show anything at all. Here is the code:
<GLView style={{ flex: 1, backgroundColor: "white" }} onContextCreate={async context => { const app = new PIXI.Application({ context, backgroundColor: "ff0000", width: 200, height: 200 }); const sketch = new PIXI.Sketch({context, strokeColor: "ffffff", strokeWidth: 5,strokeAlpha: 1}); app.stage.addChild(sketch); }} />
How do you use PIXI.Sketch?