The code I am using is this,
surface.SetMaterial(self.Powerbar)
surface.SetDrawColor(255, 255, 255, 255)
surface.DrawTexturedRectUV(x * 0.05, y * 0.9, x * 0.075, y * 0.15 * (self.Charge / 100), 1, 0, 0, (-self.Charge / 100))
which renders the results
http://www.mythicservers.com/images/mythic/2015-09-18_00-55-46.gif
The original way I had it was this,
surface.SetMaterial(self.Powerbar)
surface.SetDrawColor(255, 255, 255, 255)
surface.DrawTexturedRectUV(x * 0.05, y * 0.8, x * 0.075, y * 0.15 * (self.Charge / 100), 0, 0, 1, (self.Charge / 100))
which drew the image properly but in reverse order
http://www.mythicservers.com/images/mythic/2015-09-18_00-56-45.gif
Seeing the first one is drawing in the correct way (from green to red), is it possible to rotate a material being drawn with surface.DrawTexturedRectUV()? If not, can anyone possibly see the problem in my code or offer a fix? As always, I appreciate any and all help.