Robot SetColors Method (Color, Color, Color)Robocode Robot API for .NET
Sets the color of the robot's body, gun, and radar in the same time.

You may only call this method one time per battle. A null indicates the default (blue) color.

Examples

// Don't forget to using System.Drawing at the top... 
using System.Drawing;
...

public void Run()
{
    SetColors(null, Color.Red, Color.fromArgb(150, 0, 150));
    ...
}

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version: 1.9.3.0
Syntax

public void SetColors(
	Color bodyColor,
	Color gunColor,
	Color radarColor
)
See Also