"src": "@params\\n {\\n packages: [\\\'[email protected]\\\'],\\n\\t\\tenforce_unique_mint_args: true,\\n max_supply: \\\'100\\\',\\n mint: { \\n backgroundColor: {\\n default: \\\'0xF099bb\\\',\\n type: \\\'color-hex\\\',\\n }\\n },\\n owner: {\\n }\\n }\\n @params\\n \\n @css\\n body { margin: 0; overflow: hidden; }\\n @css\\n \\n @js\\n\\nconst backgroundColor = {{backgroundColor}}\\n\\nconst app = new PIXI.Application({ backgroundColor });\\ndocument.body.appendChild(app.view);\\n\\n// create a texture from an image path\\nconst texture = PIXI.Texture.from(\\\'https://pixijs.io/examples/examples/assets/bunny.png\\\');\\n\\n// Scale mode for pixelation \\ntexture.baseTexture.scaleMode = PIXI.SCALE_MODES.NEAREST;\\n\\nfor (let i = 0; i < 10; i++) {\\n createBunny(\\n Math.floor(Math.random() * app.screen.width),\\n Math.floor(Math.random() * app.screen.height),\\n );\\n}\\n\\nfunction createBunny(x, y) {\\n // create our little bunny friend..\\n const bunny = new PIXI.Sprite(texture);\\n\\n // enable the bunny to be interactive... this will allow it to respond to mouse and touch events\\n bunny.interactive = true;\\n\\n // this button mode will mean the hand cursor appears when you roll over the bunny with your mouse\\n bunny.buttonMode = true;\\n\\n // center the bunny\\\'s anchor point\\n bunny.anchor.set(0.5);\\n\\n // make it a bit bigger, so it\\\'s easier to grab\\n bunny.scale.set(3);\\n\\n // setup events for mouse + touch using\\n // the pointer events\\n bunny\\n .on(\\\'pointerdown\\\', onDragStart)\\n .on(\\\'pointerup\\\', onDragEnd)\\n .on(\\\'pointerupoutside\\\', onDragEnd)\\n .on(\\\'pointermove\\\', onDragMove);\\n\\n // For mouse-only events\\n // .on(\\\'mousedown\\\', onDragStart)\\n // .on(\\\'mouseup\\\', onDragEnd)\\n // .on(\\\'mouseupoutside\\\', onDragEnd)\\n // .on(\\\'mousemove\\\', onDragMove);\\n\\n // For touch-only events\\n // .on(\\\'touchstart\\\', onDragStart)\\n // .on(\\\'touchend\\\', onDragEnd)\\n // .on(\\\'touchendoutside\\\', onDragEnd)\\n // .on(\\\'touchmove\\\', onDragMove);\\n\\n // move the sprite to its designated position\\n bunny.x = x;\\n bunny.y = y;\\n\\n const basicText = new PIXI.Text({{OWNER_ID}});\\n basicText.x = 100;\\n basicText.y = 100;\\n app.stage.addChild(basicText);\\n\\n const basicText2 = new PIXI.Text({{NUM_TRANSFERS}});\\n basicText2.x = 100;\\n basicText2.y = 200;\\n app.stage.addChild(basicText2);\\n\\n // add it to the stage\\n app.stage.addChild(bunny);\\n}\\n\\nfunction onDragStart(event) {\\n // store a reference to the data\\n // the reason for this is because of multitouch\\n // we want to track the movement of this particular touch\\n this.data = event.data;\\n this.alpha = 0.5;\\n this.dragging = true;\\n}\\n\\nfunction onDragEnd() {\\n this.alpha = 1;\\n this.dragging = false;\\n // set the interaction data to null\\n this.data = null;\\n}\\n\\nfunction onDragMove() {\\n if (this.dragging) {\\n const newPosition = this.data.getLocalPosition(this.parent);\\n this.x = newPosition.x;\\n this.y = newPosition.y;\\n }\\n}\\n@js\\n\\t\\t\\n",