Sign in to follow this  
Guest ridgell

customdraw color question

Recommended Posts

what is the story on custom draw colors?i use #ac3628 and get apple red, but the same value in; CustomDraw Name="fs9gps:rose" and i get a blueish color. is there a factor by which the custom draw colors are different from colors used in strings?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Did you try "0xac3628" instead? Strings can work with html-colour code (#....), whereas most CustomDraws need direct hex-syntax 0x....

Share this post


Link to post
Share on other sites

thanks for the responce.yes i did. here are 2 snipets, 1st the custom draw, and then the string. while the values are the same i get 2 different colors. (L:hudcolor,enum) 0 == if{ 0xac3628 } (L:hudcolor,enum) 1 == if{ 0x00ff00 } (L:hudcolor,enum) 2 == if{ 0xffffff }+

Share this post


Link to post
Share on other sites

#.. and 0x.. are different syntaxes. It is #rrggbb, but it is 0xbbggrr. You should use 0x2836ac, maybe both times to avoid irritation.

Share this post


Link to post
Share on other sites

thanks! i did not know the reverse trick. my other colors ooffoo and ffffff were palindromes so i did get the reversal.

Share this post


Link to post
Share on other sites

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
Sign in to follow this