Using an integer to show a % of an image over another
Posted: Fri May 23, 2008 9:52 am
Ok, so I have a value in the range from 1 to 10... For this example, let's say it's 6.5 out of 10. I've been trying to figure out a way to display that graphically using stars like the way IMDB does... which uses this graphic

On IMDB, they are able to use that image alone to show 65% of the gold stars over 100% of the silver stars to create this effect:










only difference is, they are able to actually show that 1/2 or 1/4 star with some type of overlay image. Can anyone help me along with this? If I have confused you, let me know.

On IMDB, they are able to use that image alone to show 65% of the gold stars over 100% of the silver stars to create this effect:










only difference is, they are able to actually show that 1/2 or 1/4 star with some type of overlay image. Can anyone help me along with this? If I have confused you, let me know.