Sticmy Posted July 22, 2017 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 My name in the game is: Sticmy My discord: Sticmy#3817 My discord community: https://discord.gg/366Y9bB
</Mr.Tn6eL> Posted July 22, 2017 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> skype : 011101000110111000110110011001010110110000110000001110010011000000111001
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