WhoAmI Posted April 2, 2015 Share Posted April 2, 2015 Hello. What type of color code should be in NormalTextColour property? Right now i use this guiSetProperty ( gui.edit[5], "NormalTextColour", "bfbfbf00" ) But it stays white. Should be grey. Link to comment
maky55 Posted April 2, 2015 Share Posted April 2, 2015 I don't think bfbfbf00 is a colour code. If you want gray try "7c7c7c" for a darker gray, "7e7979" for an average gray or "aeaeae" for a lighter gray (If we are talking about colour codes). Link to comment
Mr.unpredictable. Posted April 2, 2015 Share Posted April 2, 2015 Try this code guiSetProperty ( gui.edit[5], "NormalTextColour", "FF2f4f4f" ) or this guiSetProperty ( gui.edit[5], "NormalTextColour", "FF696969" ) Link to comment
Mr.unpredictable. Posted April 2, 2015 Share Posted April 2, 2015 Here's the list http://pastebin.com/cvDrNcvy Link to comment
WhoAmI Posted April 2, 2015 Author Share Posted April 2, 2015 Well yea, I thought that this alpha value is at the end (RRGGBBAA), now i know that it is at the beginning (AARRGGBB). Link to comment
yesyesok Posted April 2, 2015 Share Posted April 2, 2015 Hex only contains 6 characters. Link to comment
WhoAmI Posted April 2, 2015 Author Share Posted April 2, 2015 Not always. RGBA is also converted to HEX, not only RGB. Link to comment
Hex547 Posted April 2, 2015 Share Posted April 2, 2015 Hex only contains 6 characters. Hexadecimal has no limit to the amount of characters. EDIT: In mathematical theory, not in practice of course. In this case the HEX strings are 2 characters long, and there's a string of 3 or 4 depending on if Alpha is included. Each 2 character string is 0-F with A-F representing the numbers 10-15. By translating this you can convert HEX into more readable numbers by multiplying each individual character by 16 to the power of the digit representing how far it is from the last character, like so: FA F = 15, A = 10 F = 15*(16^1) = 240 A = 10*(16^0) = 10 F+A = 250. Now, colours are often represented by a 0-255 value (00-FF in HEX) because a single byte of data (2^ can represent a value anywhere from 0 to 255, depending on the bits. 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