Created
March 6, 2020 18:38
-
-
Save yorkfx/49a9b5640ebb6f5a7be05758d8b3a9de to your computer and use it in GitHub Desktop.
Barra Progreso
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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