These are chat archives for pixijs/pixi.js

30th
May 2017
Zlepper
@zlepper
May 30 2017 17:28
I'm probably messing up something really simple here, but when i make a graphics object smaller, by calling drawRect with a smaller width, then the old rect is still on the renderer? Is there a way to avoid this?
ᦖєgιт
@LegitSoulja
May 30 2017 17:35
Clear you graphics before drawing
Re-drawing
@zlepper
Zlepper
@zlepper
May 30 2017 17:37
Well, that works
But i have a nagging feeling that there is a better way to just change the width of a drawn rectangle?
ᦖєgιт
@LegitSoulja
May 30 2017 17:40
Well, you can
width/height properties
You don't need to redraw the rectangle
You should really read the docs > http://pixijs.download/release/docs/PIXI.Graphics.html
Hope that answers your question. Igtg.