ScriptColor

A class representing a color.

Method

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

form
explanation

static ScriptColor New(int r, int g, int b, int a = 255)

Creates a new ScriptColor object.

Example

Create a ScriptColor object with a red color

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

Last updated