dcsex.ui.Color

Color class, represents a DCS color table.

Contents

  1. Tables
    1. color.colors
  2. Metamethods
    1. color:__init(obj)
  3. Methods
    1. color:new(red, green, blue, alpha)
    2. color:get(alpha)

Tables

color.colors

Parameters

[BLACK]
[GRAY]
[RED]
[GREEN]
[BLUE]
[BLUFOR]
[REDFOR]

Metamethods

color:__init(obj)

Parameters

obj
the object to copy color information from.

Methods

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

Parameters

red
decimal number from 0 to 1
green
decimal number from 0 to 1
blue
decimal number from 0 to 1
alpha
decimal number from 0 to 1

color:get(alpha)

Parameters

alpha
optionally set the alpha channel to alpha otherwise the alpha channel will be whatever was originally set.