Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
TS committed Mar 15, 2023
2 parents 7043f7a + e1cb615 commit 77d5b77
Show file tree
Hide file tree
Showing 48 changed files with 689 additions and 803 deletions.
77 changes: 40 additions & 37 deletions demo/pixi.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,42 @@
<!DOCTYPE html>
<html lang="en">

<head>
<title>Background Test</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/7.1.2/pixi.min.js"
integrity="sha512-YTlYdhIUvBMYexvTHQ0CKSLdAFD3dranAzjANwv0RAn5UwUMmy0DjNsaGWJgSB08gMj1B0MLnEZuVQHbcRIn5w==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/tgen-with-presets.min.js" integrity="sha256-trzqAn75mpT5g+ragtNFM6CULQEqNmjsrFwqVjCPmYo="
crossorigin="anonymous"></script>
</head>

<body>
<script>

const generator = tgen.init(256, 256);
const texture = generator.render({
preset: {
name: "waves-cool",
seed: null,
},
});

const sprite = PIXI.Sprite.from(texture.toCanvas());
const app = new PIXI.Application({ background: '#000' });

sprite.anchor.set(0.5);
sprite.x = app.screen.width / 2;
sprite.y = app.screen.height / 2;
app.stage.addChild(sprite);
app.ticker.add((delta) => {
sprite.rotation += 0.01 * delta;
});

document.body.appendChild(app.view);

</script>
</body>

</html>
<head>
<title>Background Test</title>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/7.1.2/pixi.min.js"
integrity="sha512-YTlYdhIUvBMYexvTHQ0CKSLdAFD3dranAzjANwv0RAn5UwUMmy0DjNsaGWJgSB08gMj1B0MLnEZuVQHbcRIn5w=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/tgen-with-presets.min.js"
integrity="sha256-trzqAn75mpT5g+ragtNFM6CULQEqNmjsrFwqVjCPmYo="
crossorigin="anonymous"
></script>
</head>

<body>
<script>
const generator = tgen.init(256, 256);
const texture = generator.render({
preset: {
name: "waves-cool",
seed: null,
},
});

const sprite = PIXI.Sprite.from(texture.toCanvas());
const app = new PIXI.Application({ background: "#000" });

sprite.anchor.set(0.5);
sprite.x = app.screen.width / 2;
sprite.y = app.screen.height / 2;
app.stage.addChild(sprite);
app.ticker.add((delta) => {
sprite.rotation += 0.01 * delta;
});

document.body.appendChild(app.view);
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion dist/tgen-with-presets.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tgen-with-presets.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* https://texture-generator.com/
*
* @copyright 2015-2022 Tamas Schalk
* @version 1.4.15
* @version 1.4.16
* @license MIT
*
*/
Binary file modified dist/tgen-with-presets.min.js.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/tgen.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/tgen.min.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* https://texture-generator.com/
*
* @copyright 2015-2022 Tamas Schalk
* @version 1.4.15
* @version 1.4.16
* @license MIT
*
*/
Binary file modified dist/tgen.min.js.gz
Binary file not shown.
Loading

0 comments on commit 77d5b77

Please sign in to comment.