FastColor

Displays color.

# Properties

[{"index":"number a","0":"The elements of the transparency of the colors. 0 is transparent, 1 is opaque."}]

[{"index":"number b","0":"The elements of the color blue."}]

[{"index":"number g","0":"The elements of the color green."}]

[{"index":"number r","0":"The elements of the color red."}]

[{"index":"FastColor black (Static) (ReadOnly)","0":"You can simply use black (0, 0, 0, 1)."}]

[{"index":"FastColor blue (Static) (ReadOnly)","0":"You can simply use blue (0, 0, 1, 1)."}]

[{"index":"FastColor clear (Static) (ReadOnly)","0":"You can simply use transparent (0, 0, 0, 0)."}]

[{"index":"FastColor cyan (Static) (ReadOnly)","0":"You can simply use jade (0, 1, 1, 1)."}]

[{"index":"FastColor gray (Static) (ReadOnly)","0":"You can simply use grey (0.5, 0.5, 0.5, 1)."}]

[{"index":"FastColor green (Static) (ReadOnly)","0":"You can simply use green (0, 1, 0, 1)."}]

[{"index":"FastColor magenta (Static) (ReadOnly)","0":"You can simply use magenta (1, 0, 1, 1)."}]

[{"index":"FastColor red (Static) (ReadOnly)","0":"You can simply use red (1, 0, 0, 1)."}]

[{"index":"FastColor white (Static) (ReadOnly)","0":"You can simply use white (1, 1, 1, 1)."}]

[{"index":"FastColor yellow (Static) (ReadOnly)","0":"You can simply use yellow (1, 0.92, 0.016, 1)."}]

# Constructors

[{"index":"FastColor(number r, number g, number b)","0":"Initializes to the specified r, g, b values."}]

[{"index":"FastColor(number r, number g, number b, number a)","0":"Initializes to the specified r, g, b, a values."}]

[{"index":"FastColor(Color color)","0":"Initializes FastColor to the specified value."}]

# Methods

[{"index":"FastColor Clone()","0":"Generates a copy."}]

[{"index":"number Grayscale()","0":"Finds the grayscale of the color."}]

[{"index":"FastColor Lerp(FastColor b, number t)","0":"Creates a FastColor value using linear interpolation with t between two Colors and returns it. The t value is fixed between 0 and 1."}]

[{"index":"FastColor LerpUnclamped(FastColor b, number t)","0":"Creates a FastColor value using linear interpolation with t between two colors and returns it."}]

[{"index":"number, number, number RGBToHSV()","0":"Converts the RGB value to HSV and returns it."}]

[{"index":"void Add(FastColor b)","0":"Adds value. Functions the same as the += operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Sub(FastColor b)","0":"Subtracts value. Functions the same as the -= operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Mul(number num)","0":"Multiplies value. Functions the same as the *= operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Div(number num)","0":"Divides value. Functions the same as the \/= operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"string ToHexCode()","0":"Converts RGBA to hex code."}]

[{"index":"integer ToRGBAInt()","0":"Converts RGBA to an integer. Uses the '0xFFFFFFFF' format."}]

[{"index":"FastColor FromHexCode(string hexCode) (Static)","0":"Creates a FastColor entity using the hexadecimal number color value. This hex code follows a format such as '#FFFFFF' or '#FFFFFFFF'."}]

[{"index":"string ToHexCode(FastColor color) (Static)","0":"Converts RGBA to hex code."}]

[{"index":"FastColor FromRGBAInt(integer rgba) (Static)","0":"Creates a Color entity using the RGBA represented as an integer."}]

[{"index":"integer ToRGBAInt(FastColor color) (Static)","0":"Converts RGBA to an integer. Uses the '0xFFFFFFFF' format."}]

[{"index":"number Grayscale(FastColor color) (Static)","0":"Finds the grayscale of the color."}]

[{"index":"FastColor HSVToRGB(number h, number s, number v) (Static)","0":"Converts and returns the HSV value to RGB. The RGB value is fixed between 0 and 1."}]

[{"index":"FastColor HSVToRGB(number h, number s, number v, boolean hdr) (Static)","0":"Converts and returns the HSV value to RGB. If hdr is true, the RGB value is not fixed between 0 and 1."}]

[{"index":"FastColor Lerp(FastColor a, FastColor b, number t) (Static)","0":"Creates a FastColor value using linear interpolation with t between two Colors and returns it. The t value is fixed between 0 and 1."}]

[{"index":"FastColor LerpUnclamped(FastColor a, FastColor b, number t) (Static)","0":"Creates a FastColor value using linear interpolation with t between two colors and returns it."}]

[{"index":"number, number, number RGBToHSV(FastColor rgbColor) (Static)","0":"Converts the RGB value to HSV and returns it."}]

[{"index":"void Add(FastColor a, FastColor b) (Static)","0":"Adds value. Functions the same as the += operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Sub(FastColor a, FastColor b) (Static)","0":"Subtracts value. Functions the same as the -= operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Mul(FastColor a, number num) (Static)","0":"Multiplies value. Functions the same as the *= operator, but it doesn't create a new entity, which results in faster execution."}]

[{"index":"void Div(FastColor a, number num) (Static)","0":"Divides value. Functions the same as the \/= operator, but it doesn't create a new entity, which results in faster execution."}]

# Operators

[{"index":"FastColor Addition(FastColor left, FastColor right) (Static)","0":"Returns a new FastColor entity by adding the two specified values together. The calculation result is FastColor(left.r + right.r, left.g + right.g, left.b + right.b, left.a + right.a)."}]

[{"index":"FastColor Division(FastColor left, number right) (Static)","0":"Returns a new FastColor entity by dividing the specified value by the real number. The calculation result is FastColor(left.r \/ right, left.g \/ right, left.b \/ right, left.a \/ right)."}]

[{"index":"boolean Equality(FastColor left, FastColor right) (Static)","0":"Checks if the two values are the same. Returns true if all values are the same. Otherwise, returns false."}]

[{"index":"boolean Inequality(FastColor left, FastColor right) (Static)","0":"Checks if the two values are different. Returns false if all values are the same. Otherwise, returns true."}]

[{"index":"FastColor Multiply(FastColor left, FastColor right) (Static)","0":"Returns a new FastColor entity by multiplying the two specified values together. The calculation result is FastColor(left.r * right.r, left.g * right.g, left.b * right.b, left.a * right.a)."}]

[{"index":"FastColor Multiply(FastColor left, number right) (Static)","0":"Returns a new FastColor entity by multiplying the specified value by the real number. The calculation result is FastColor(left.r * right, left.g * right, left.b * right, left.a * right)."}]

[{"index":"FastColor Multiply(number left, FastColor right) (Static)","0":"Returns a new FastColor entity by multiplying the specified value by the real number. The calculation result is FastColor(left * right.r, left * right.g, left * right.b, left * right.a)."}]

[{"index":"FastColor Subtraction(FastColor left, FastColor right) (Static)","0":"Returns a new FastColor entity by subtracting the specified right value from the left value. The calculation result is FastColor(left.r - right.r, left.g - right.g, left.b - right.b, left.a - right.a)."}]