Color Gradients using CreateColor
I have been updating some of the addons I use and decided to see if I could update the color gradient function that most people use to CreateColor. While it isn't a new thing Blizzard is continuing to move towards using it in their own code so I figured I would get with the times. The new version seems to work so I decided to share it here.
Once you get the color object back you can use any of the mixin functions such as GetRGB(), GetRGBA(), or GenerateHexColor(). Lua Code:
PS: If this is the wrong place to post this or someone has already done something like this I apologize in advanced but I felt like sharing this bit of code. |
All times are GMT -6. The time now is 03:30 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI