surface.SetTexture( gradient )
surface.DrawTexturedRectRotated(x-(w/2), y+(h/2), w, h, r );
–surface.DrawTexturedRect( x, y, w, h )
–surface.DrawTexturedRect( 0, ScrH()-50, 300, 50 )
hook.Add( “HUDPaint”, “PolygonTest”, function()
draw.GradientRectRot(ScrW()/2, ScrH()/2, 90, 100,Color(200,200,0,255),90)
When Width is 200:
When Width is 90:
My problem is it not rotate the texture. It rotates everything. I would like to make a bar with gradient from bottom to top. Also width is coming from left to right and not right to left.
Sorry for my bad english. You can see when I change size it changes the position in x and y. Anybody can help me?