Robot SetAllColors Method Robocode Robot API for .NET
Sets all the robot's color to the same color in the same time, i.e. the color of the body, gun, radar, bullet, and scan arc.

You may only call this method one time per battle. A null indicates the default (blue) color for the body, gun, radar, and scan arc, but white for the bullet color.

Examples

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

public void Run()
{
    SetAllColors(Color.Red);
    ...
}

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

public void SetAllColors(
	Color color
)

Parameters

color
Type: OnlineSystem.Drawing Color
The new color for all the colors of the robot
See Also