> For the complete documentation index, see [llms.txt](https://pahutyakv.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pahutyakv.gitbook.io/docs/randomly/.color.md).

# .Color

`Randomly.Color` provides random Color generation for Unity, supporting tones, ranges, and string/byte representations.

***

### <mark style="color:$success;">Get</mark>

* `Get(tone)` – Generates a random Color with an optional tone filter (`Any`, `Warm`, `Cool`, `Neon`, `Pastel`, `Gray`).
* `Get(min, max)` – Generates a random Color within the specified min and max Color range.

***

### <mark style="color:$success;">RGB(A) / Hex</mark>

* `RGB(tone)` – Generates a random RGB color with an optional tone filter as a tuple of bytes.
* `RGBA(tone)` – Generates a random RGBA color with an optional tone filter as a tuple of bytes.
* `Hex(tone, includeAlpha)` – Generates a random hexadecimal color string with an optional tone filter, optionally including alpha channel.

***

{% code title="Example.cs" %}

```csharp
// Random warm color
Color warmColor = Randomly.Color.Get(RandomlyColor.ColorTone.Warm);

// Random hex color
string hexColor = Randomly.Color.Hex();
```

{% endcode %}
