-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into task/xsebek/time-vs-clock
- Loading branch information
Showing
6 changed files
with
44,134 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
function setupGraphics(button, displayWidth, displayHeight) { | ||
async function setupGraphics(button, displayWidth, displayHeight) { | ||
|
||
const app = new PIXI.Application(); | ||
// Create the application helper and add its render target to the page | ||
let app = new PIXI.Application({ | ||
await app.init({ | ||
width: displayWidth, | ||
height: displayHeight, | ||
backgroundColor: 0xFFFFFF | ||
}); | ||
|
||
document.body.insertBefore(app.view, button); | ||
document.body.insertBefore(app.canvas, button); | ||
|
||
const graphics = new PIXI.Graphics(); | ||
app.stage.addChild(graphics); | ||
return [app.view, graphics]; | ||
return [app.canvas, graphics]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.