Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
la máscara no se puede mover ni cambiar de tamaño en PIXIJS

Quiero manipular máscaras en PIXIJS. Escribí el código basado en el ejemplo oficial. ( https://pixijs.io/examples/#/masks/sprite.js ).

 const app = new PIXI.Application({ width: $(window).innerWidth(), height: $(window).innerHeight(), backgroundColor: 0x000000, antialias: true, }); app.stage.hitArea = app.screen; app.stage.interactive = true; const rect = new PIXI.Graphics().beginFill(0xff0000,1).drawRect(0,0, 500, 500).endFill(); const sprite = PIXI.Sprite.from('Assets/UI/play.png'); sprite.x = 250; sprite.y = 250; rect.mask = sprite; app.stage.addChild(rect);

Moví el sprite, pero no se movió de (0,0). esta imagen muestra el resultado de la ejecución. ¿Cómo muevo o cambio el tamaño de la máscara? gracias.

PIXIJS:6.2.0 Ejecutando con webpack y babel.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!