IBasicRobotPeer SetBodyColor Method Robocode Robot API for .NET
Sets the color of the robot's body.

A null indicates the default (blue) color.

Examples

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

public void Run()
{
    SetBodyColor(Color.BLACK);
    ...
}
The new body color

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

void SetBodyColor(
	Color color
)
See Also