Jump to content

dxdrawtext colour codes


Recommended Posts

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.

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