Class Color

Tables

color.instance

Methods

color:new (red, green, blue)
color:channels ()

Metamethods

color:__data ()
color:__tostring ()


Tables

color.instance

Fields:

  • red number [0, 1]
  • green number [0, 1]
  • blue number [0, 1]

Methods

color:new (red, green, blue)

Parameters:

  • red number [0, 1]
  • green number [0, 1]
  • blue number [0, 1]

Returns:

    Color
color:channels ()

Returns:

    {number,number,number} red, green and blue values in the range [0, 1]

Metamethods

color:__data ()

Returns:

    tab table with instance fields (see the luaserialization library)
color:__tostring ()

Returns:

    string stringified table with instance fields (see the luaserialization library)
generated by LDoc 1.5.0 Last updated 2025-02-02 05:48:05