Originally Posted by
astisbc
Hello, i try to understand this part of a Script.. . Brush = Hud.Render.CreateBrush(255, 64, 128, 255, 3) - what are the numbers for?
the first three i guess (255,64,12

are the color... but what is the last two digits, 255 and 3 for ?
what programlanguage are the plugins written in?
look at the contents of the file interfaces\controllers\RenderController.cs:
Code:
IBrush CreateBrush(int a, int r, int g, int b, float strokeWidth, DashStyle dash = DashStyle.Solid, CapStyle startCap = CapStyle.Flat, CapStyle endCap = CapStyle.Flat);
a -> It is the opacity, imagine the window glass: 0 corresponds to a crystal completely transparent (and clean) and 255 would be totally tinted.
r,g,b -> Color, is specified with the red, green and yellow components. You can use this website.
"3 "-> Stroke Width .
The rest of parameters are optional