I'm trying to write an app that takes values form the accelerometer and displayes them via a bar gauge (or maybe needle gauge) but I'm not to sure how to get the gauge to work. I was thinking of these options:
break the gauge into multiple parts and therefore multiple images, of the gauge "filling up" and depending on the values from the accelerometer, display a different image.
Have just the one image of a full gauge and programmatically decide how much of the image to show. I dont fully understand how to do this but it seems to be a more elegant way of doing what I want as it means that I only need to have the one image that will be manipulated and thus saving space.
I am confident that I can impliment the first option sucessfuly without too much hassle, but is it just taking the easy way out? Which of the 2 methods should I use? Is there another way to do this that I don't know about?
Any advice will be very much appreciated :)