Gravestone Posted January 15, 2017 Share Posted January 15, 2017 I recently tried to set a GUI static image's color using guiSetProperty. First I didn't know which property to use so I used GUI Editor, created an image and set it's color to green. This is what the code looked like: guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF00FF00 tr:FF00FF00 bl:FF00FF00 br:FF00FF00") Now if I have to set the image's color to specific RGB values, how do I figure out what the code should look like matching this "tl:FF00FF00 tr:FF00FF00 bl:FF00FF00 br:FF00FF00". I hope you guys understand. Link to comment
Simple0x47 Posted January 15, 2017 Share Posted January 15, 2017 The property has four sections. Top Left, Top Right, Bottom Left, Bottom Right. Each of them uses a HEX code which follows a RGBA structure. FF(Red)00(Green)FF(Blue)00(Alpha). So just get a normal RGB hex code and add to it at the end FF for 100% Alpha or 00 for 0% Alpha. 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