Degrafa – Tony Fendall http://blog.tonyfendall.com Sun, 10 Apr 2016 09:45:34 +0000 en-NZ hourly 1 https://wordpress.org/?v=4.4.2 Animating ProgressBar Skin in Flex http://blog.tonyfendall.com/2010/05/animating-progressbar-skin-in-flex/ http://blog.tonyfendall.com/2010/05/animating-progressbar-skin-in-flex/#comments Wed, 12 May 2010 19:54:01 +0000 http://blog.tonyfendall.com/?p=85 Continue reading Animating ProgressBar Skin in Flex]]> Stop WatchWhen I was in university (college) I was told a story about a large office building which had notoriously slow elevators.  People would often spend several minutes waiting for the elevator to arrive at their floor and the occupants of the building complained about the problem often.

In an effort remedy the problem the owners of the building hired an engineer to come in and recommend ways to speed up the elevator service.  The engineer reviewed the existing elevator system and all compatible upgrade options.  Eventually the engineer came back with his recommendation:

The most cost effective way to improve the elevator service was to cover the elevator doors with mirrors.

The idea was unconventional to say the least, but it was so much cheaper than replacing the existing elevators that the building owners decided to try it.  The employees did not realize that no further modifications had been made, and everyone agreed that the new ‘upgraded’ elevators were much faster than the old ones.

The moral of the story is that sometimes it’s easier to simply distract the user while they are waiting than speed up the thing they are waiting for.  In the elevator story the people were distracted by having something to look at while they were waiting (themselves!) and this was enough to make the wait not feel as long.  This story has always stuck with me and I am always on the look out for places where I can use this principle within my applications.

With this goal in mind I created an animating progress bar skin.  The progress bar fills up at the same speed as any other, but as it does so the texture occasionally slides from left to right. This gives the impression that the bar is moving faster than it is and the whole wait feels much more positive :)

Check out the example below to see the principle in action.  The top progress bar has a regular skin applied and moves painfully slowly.  The bottom progress bar moves at the same speed but has an animating skin applied.  It’s easy to see that it feels like things are progressing much faster.

The full source code is available here.  Feel free to take it and use it in any way which us useful to you.  This skin has been built using Degrafa so you can easily change the colour scheme and use it in other applications.

]]>
http://blog.tonyfendall.com/2010/05/animating-progressbar-skin-in-flex/feed/ 5
Using Vector Paths with Degrafa http://blog.tonyfendall.com/2010/05/using-vector-paths-with-degrafa/ http://blog.tonyfendall.com/2010/05/using-vector-paths-with-degrafa/#comments Thu, 06 May 2010 20:33:44 +0000 http://blog.tonyfendall.com/?p=78 Continue reading Using Vector Paths with Degrafa]]> raindrop2 In the last few weeks I have been lucky enough to work alongside Greg Dove. Greg is one of the core contributors to the Degrafa framework, and it’s been a good chance for me to look into Degrafa more and learn what can be done with it.

The below example is something I created while playing with Degrafa Paths (using my movable components library again).  Paths were a huge revelation for me because they allow you to create skins (buttons etc) with arbitrarily complex shapes.  Now able to create speech bubbles and starbursts without having to embed a PNG asset.  That’s really cool :)

Try it Out:

The full source code is available here.  Feel free to take it and use it in any way which us useful to you.

]]>
http://blog.tonyfendall.com/2010/05/using-vector-paths-with-degrafa/feed/ 1