# Color.FromBytes

```csharp
static Color FromBytes(int r, int g, int b, int a = 255)
```

Creates a color from 0-255 range inputs, converting them to 0-1 range.

### Parameters

- `r` (`int`): The red component.
- `g` (`int`): The green component.
- `b` (`int`): The blue component.
- `a` (`int`), default `255`: The alpha/transparency component.

### Returns

`Color`

Declared in [Color](/api/Color).
Assembly: `Sandbox.System`.
