Color Helper
This utility provides a simple interface for common colors and is intended to be used for resolving colors from TerminalCommand arguments.
Important
If you are developing a script that does not need to use colors in commands, use the programmable block's built-in color constants instead. See VRageMath.Color
Getting a Color
The ColorHelper class provides a simple way to access common colors by name or RGB string:
// by name
Color red = ColorHelper.GetColor("red");
// by RGB string
Color blue = ColorHelper.GetColor("0,0,255");
Available Colors
| Name | RGB | Hexidecimal |
|---|---|---|
| 255,0,0 | #FF0000 | |
| 0,255,0 | #00FF00 | |
| 0,0,255 | #0000FF | |
| 255,255,0 | #FFFF00 | |
| 255,165,0 | #FFA500 | |
| 0,255,255 | #00FFFF | |
| 255,0,255 | #FF00FF | |
| 255,255,255 | #FFFFFF | |
| 0,0,0 | #000000 |
