Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

GLView doesn't show anything #157

Open
jamesqm opened this issue Mar 1, 2021 · 0 comments
Open

GLView doesn't show anything #157

jamesqm opened this issue Mar 1, 2021 · 0 comments

Comments

@jamesqm
Copy link

jamesqm commented Mar 1, 2021

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant