Skip to content

Class "KColor"⚓︎

Info

This class can be accessed by using its constructor or the following function:

Example Code
1
local myKColor = KColor(1,0,0,1)

Constructors⚓︎

KColor ()⚓︎

KColor KColor ( float red, float green, float blue, float alpha )⚓︎

Constructor for the "KColor" class.

Notes

"KColor" is only used in the Font class. For most other situations you will need to use the Color() constructor.


Constants⚓︎

KColor.Black⚓︎

Equivalent to KColor(0, 0, 0, 1).


KColor.Red⚓︎

Equivalent to KColor(1, 0, 0, 1).


KColor.Green⚓︎

Equivalent to KColor(0, 1, 0, 1).


KColor.Blue⚓︎

Equivalent to KColor(0, 0, 1, 1).


KColor.Yellow⚓︎

Equivalent to KColor(1, 1, 0, 1).


KColor.Cyan⚓︎

Equivalent to KColor(0, 1, 1, 1).


KColor.Magenta⚓︎

Equivalent to KColor(1, 0, 1, 1).


KColor.White⚓︎

Equivalent to KColor(1, 1, 1, 1).


KColor.Transparent⚓︎

Equivalent to KColor(0, 0, 0, 0).


Variables⚓︎

Alpha⚓︎

float Alpha⚓︎


Blue⚓︎

float Blue⚓︎


Green⚓︎

float Green⚓︎


Red⚓︎

float Red⚓︎



Last update: April 26, 2024