Jump to content

dxdrawtext colour codes


Recommended Posts

Posted

Can any one make this dxdrawtext colour green or give me all if dxdrawtext colour code

I'm not showing all my script just a part of it so none can steal it.

dxDrawText("Admin OnDut", sx-2, sy-232, sx, sy, tocolor(0, 0, 0, 200), fontbig, "default-bold", "center") 

Posted

It's really simple. If you want to colour the entire string, use the tocolor() attribute of dxDrawText. This attribute has 4 values, Red, Green, Blue and Alpha. They range from a value of 0 to 255.

You can also use hex code, IE, if you want 255 green - you would do #00FF00. I'd recommend you use websites such as colorpicker.com.

Also, read about dxDrawText, you have a boolean for whether it should accept hex colour-codes in the string or not.

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...