Class Color

A color

Functions

Color.new (r, g, b, a) Creates a new color

Fields

Color.r The red of the color
Color.g The green of the color
Color.g The blue of the color
Color.a The alpha of the color


Functions

Methods
Color.new (r, g, b, a)
Creates a new color

Parameters:

  • r integer the red value
  • g integer the green value
  • b integer the blue value
  • a integer the alpha value

Returns:

    Vec2 the new Vector

Fields

Color.r
The red of the color
Color.g
The green of the color
Color.g
The blue of the color
Color.a
The alpha of the color
generated by LDoc 1.5.0 Last updated 2024-05-23 11:40:37