Robot GunColor Property Robocode Robot API for .NET
Sets the color of the robot's gun.

A null indicates the default (blue) color.

Examples

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

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

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

public Color GunColor { get; set; }

Property Value

Type: OnlineColor
See Also