# CrosshairColour record struct

> A crosshair's colour as four bytes, red, green, blue and alpha, written #rrggbb or #rrggbbaa in lowercase.

Namespace `EvilEngine.Formats.Records`, assembly `EvilEngine.Formats`. Engine commit 4ff877b1.

```csharp
public readonly record struct CrosshairColour
```

A crosshair's colour as four bytes, red, green, blue and alpha, written `#rrggbb` or `#rrggbbaa` in lowercase.

## Members

### CrosshairColour (constructor)

```csharp
public CrosshairColour(byte R, byte G, byte B, byte A)
```

Makes a colour from its four bytes.

### White (field)

```csharp
public static readonly CrosshairColour White
```

Opaque white, `#ffffffff`.

### R (property)

```csharp
public byte R { get; init; }
```

Red, 0 to 255.

### G (property)

```csharp
public byte G { get; init; }
```

Green, 0 to 255.

### B (property)

```csharp
public byte B { get; init; }
```

Blue, 0 to 255.

### A (property)

```csharp
public byte A { get; init; }
```

Alpha, 0 to 255, where 255 is opaque.

### TryParse (method)

```csharp
public static bool TryParse(string text, out CrosshairColour colour)
```

Reads `#rrggbb`, opaque, or `#rrggbbaa`, in lowercase hex, and returns `false` for anything else.
