Return to Main Docs Page

Color

NewerShared.png Color Color( number r, number g, number b, number a )

Description:



Creates and returns Color object.

Arguments:



  • 1) number r
  • An integer from 0-255 describing the red value of the color.

  • 2) number g
  • An integer from 0-255 describing the green value of the color.

  • 3) number b
  • An integer from 0-255 describing the blue value of the color.

  • 4) number a
  • An integer from 0-255 describing the alpha (transparency) of the color.(default 255)

Returns:



  • 1) Color
  • The created color object.