> For the complete documentation index, see [llms.txt](https://docs.punkland.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.punkland.io/punkland-studio/script/server-script/scriptcolor.md).

# ScriptColor

A class representing a color.

## Method <a href="#undefined" id="undefined"></a>

| form                | explanation             |
| ------------------- | ----------------------- |
| int a { get; set; } | Transparency (0 \~ 255) |
| int r { get; set; } | Red (0 \~ 255)          |
| int g { get; set; } | Green (0 \~ 255)        |
| int b { get; set; } | Blue (0 \~ 255)         |

## Function <a href="#undefined" id="undefined"></a>

| form                                                     | explanation                       |
| -------------------------------------------------------- | --------------------------------- |
| static ScriptColor New(int r, int g, int b, int a = 255) | Creates a new ScriptColor object. |

## Example <a href="#undefined" id="undefined"></a>

Create a ScriptColor object with a red color

```
local red = Color(255, 0, 0);
```
