Sticmy Posted July 22, 2017 Share Posted July 22, 2017 Ho I need help on how can I convert a drawRectangle into a gradient I will leave image below Sorry i do not know much english http://imgur.com/gPCNBmw Link to comment
</Mr.Tn6eL> Posted July 22, 2017 Share Posted July 22, 2017 (edited) use loop local w, h = 200, 100 for k=1, w do dxDrawRectangle(x+k, y, 1, h, tocolor(0, 0, 0, k/w*255)) end Edited July 22, 2017 by </Mr.Tn6eL> Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now