dcsex.ui.Color
Color class, represents a DCS color table.
Contents
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.