Once we have created a drawing we will sometimes want to update it to reflect a change in the data it is representing or a change in the situation the shape finds itself in. Whatever the reason, the drawing package allows us to easily reconfigure a sprite's characteristics programmatically, both instantly and through a progressive animation.
We will demonstrate how to achieve this by changing the properties of a simple rectangle sprite. The first method we will use is the
setAttributes method of the
Ext.draw.Sprite class and then we will move on to using the