Skip to content

Instantly share code, notes, and snippets.

@yorkfx
Created March 6, 2020 18:38
Show Gist options
  • Save yorkfx/49a9b5640ebb6f5a7be05758d8b3a9de to your computer and use it in GitHub Desktop.
Save yorkfx/49a9b5640ebb6f5a7be05758d8b3a9de to your computer and use it in GitHub Desktop.
Barra Progreso
//Barra de avance
barritaAvance = new createjs.Shape();
barrita = new createjs.Shape();
bolitaAvance = new createjs.Shape();
barrita.graphics.beginFill("white").drawRoundRectComplex(182, 620, anchoBarra, altoBarra, altoBarra/2, altoBarra/2, altoBarra/2, altoBarra/2);
barritaAvance.graphics.beginFill("#dedede").drawRoundRectComplex(182, 620, posicionbolita, altoBarra, altoBarra/2, 0, 0, altoBarra/2);
bolitaAvance.graphics.beginFill("red").drawCircle(0, 0, 10);
bolitaAvance.x = posicionbolita + 175;
bolitaAvance.y = 620 - bolitaAvance.getBounds();
_this.stage.addChild(barrita);
_this.stage.addChild(barritaAvance);
_this.stage.addChild(bolitaAvance);
console.log(bolitaAvance.getBounds().width);
stage.update();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment