Enumeration of named colors (for TouchLed and ColorSensor)
More...
|
def | get_color (named_color) |
| Get (red, green, blue, brightness) tuple for the named color. More...
|
|
def | get_name (named_color) |
| Get the name of the named color. More...
|
|
Enumeration of named colors (for TouchLed and ColorSensor)
◆ get_color()
def vexiq.NamedColor.get_color |
( |
|
named_color | ) |
|
Get (red, green, blue, brightness) tuple for the named color.
- Parameters
-
- Returns
- tuple with rgba values for the color
◆ get_name()
def vexiq.NamedColor.get_name |
( |
|
named_color | ) |
|
Get the name of the named color.
- Parameters
-
- Returns
- string with the color name
◆ OFF
int vexiq.NamedColor.OFF = 0 |
|
static |
◆ RED
int vexiq.NamedColor.RED = 1 |
|
static |
◆ RED_ORANGE
int vexiq.NamedColor.RED_ORANGE = 2 |
|
static |
◆ ORANGE
int vexiq.NamedColor.ORANGE = 3 |
|
static |
◆ YELLOW_ORANGE
int vexiq.NamedColor.YELLOW_ORANGE = 4 |
|
static |
◆ YELLOW
int vexiq.NamedColor.YELLOW = 5 |
|
static |
◆ YELLOW_GREEN
int vexiq.NamedColor.YELLOW_GREEN = 6 |
|
static |
◆ GREEN
int vexiq.NamedColor.GREEN = 7 |
|
static |
◆ BLUE_GREEN
int vexiq.NamedColor.BLUE_GREEN = 8 |
|
static |
◆ BLUE
int vexiq.NamedColor.BLUE = 9 |
|
static |
◆ BLUE_VIOLET
int vexiq.NamedColor.BLUE_VIOLET = 10 |
|
static |
◆ VIOLET
int vexiq.NamedColor.VIOLET = 11 |
|
static |
◆ RED_VIOLET
int vexiq.NamedColor.RED_VIOLET = 12 |
|
static |
◆ WHITE
int vexiq.NamedColor.WHITE = 13 |
|
static |