Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

247
Visualizações
Smoothly animating a progress bar in PixiJS

I have a progress bar that will increase as my program completes but it jumps from increment a to b rather than smoothly easing in or out. Is there a way I can tween the progress bar rather than having it jerk? The progress bar currently is just a PIXI.graphic object in a container that changes positions.

 let progressBarContainer = new PIXI.Container();
 let progressBar = new PIXI.Graphics();
 progressBarContainer.addChild(progressBar);

 //after progress is made

 progressBar.position = (x + progress, y)

I was thinking of having a timer function that increases the progress bar by some x value until it reaches the desired percentage (maybe use a cubic function to imitate easing animations) but I was wondering if maybe there is a more effective way that I have not come across yet.

Thanks!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda