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

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()
{
    SetColors(null, Color.Red, Color.Greeen, null, Color.fromArgb(150, 0, 150));
    ...
}

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

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