Posted by
code4js
➤ PixiJs : Play Sound,mute,unmute using sound library and using Sprite Image ? ⇒ Here is Sprite Image for Sound On/Off (volumes.png): ⇒ Here is Html Code Sound On/Off : <html> <head> <script src="https://cdn.jsdelivr.net/npm/pixi.js@7.x/dist/pixi.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.3/howler.min.js" integrity="sha512-6+YN/9o9BWrk6wSfGxQGpt3EUK6XeHi6yeHV+TYD2GR0Sj/cggRpXr1BrAQf0as6XslxomMUxXp2vIl+fv0QRA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> </head> <body> <script> const app = new PIXI.Application({ "background": "#000", //canvas background Color "width":300, //canvas width "height":300 //canvas height }); document.body.appendChild(app.view); //canvas view on your screen ...
- Get link
- X
- Other Apps