Originally Posted by
Noobz
Not an expert here, but since no one else has answered, 200 is the opacity or darkness of the brush. The 250, 10, 10 is the rgb value, and the last one is thickness I believe, but not sure on that one. Someone correct this if it is wrong please.
Noobz
I'm pretty sure to have answered that question before, but can't find the post.
You can find most of the documentation in the code itself, all hud public api definition is located in /interfaces and the code is really straigthforward.
In your case, you can find the method signature inside /interfaces/controllers/IRenderController.cs
PHP Code:
public interface IRenderController
{
//SNIP....
IBrush CreateBrush(int a, int r, int g, int b, float strokeWidth, DashStyle dash = DashStyle.Solid, CapStyle startCap = CapStyle.Flat, CapStyle endCap = CapStyle.Flat);
//SNIP....
}
- a => alpha (0..255) (transparent to opaque)
- r => red (0..255)
- g => green (0..255)
- b => blue (0..255)
- strokeWidth => 0 mean filled, other values mean the 'border' thickness
- other parameters have a default value and can be ignored (they are more advanced and a bit off-topic)
Edit : question & answer added to my signature link ;p