Jump to content

setting color


HappyMeal

Recommended Posts

Well, in the other topic it says it specifies a hex color in the form of AARRGGBB, AA stands for Alpha, RR for red, GG for green and BB for blue. So I'm guessing this would make it red for you: tl:FFFF0000 tr:FFFF0000 bl:FFFF0000 br:FFFF0000") FF means 255 or the highest possible value for a color and 0 means nothing or black. It's just a hex color code except for the first two characters which is the alpha.

Also try this: tl:FFFF0000 tr:FF00FF00 bl:FF0000FF br:FFFFFFFF")

Link to comment

string.format("%X%X%X%X", a, r, g, b) -- a = alpha,  
                                      -- r = red,  
                                      -- g = green,  
                                      -- b = blue (duh) 

Edit:

string.format("%.2X%.2X%.2X%.2X", a, r, g, b) -- a = alpha,  
                                              -- r = red,  
                                              -- g = green,  
                                              -- b = blue (duh) 

Edited by Guest
Link to comment
string.format("%X%X%X%X", a, r, g, b) -- a = alpha,  
                                      -- r = red,  
                                      -- g = green,  
                                      -- b = blue (duh) 

string.format("#%.2X%.2X%.2X%.2X", a, r, g, b) 

If integer is smaller than 15, then rather use this one.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...