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.


// 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:

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