|
VEX V5 Python API
|
Public Member Functions | |
| def | __init__ (self, color_value) |
| Creates a color using a 0xRRGGBB color value. More... | |
| def | set_rgb (self, r, g, b) |
| def | set_value (self, color_value) |
| def | set_hsv (self, hue, saturation, value) |
| Creates a color using hue, saturation, and brightness values. More... | |
| def | set_web (self, web_color_str) |
| def | value (self) |
| Gets the 0xRRGGBB color value. More... | |
| def | is_transparent (self) |
| Gets the state of the color's transparency. More... | |
Static Public Member Functions | |
| def | from_rgb (r, g, b) |
| def | from_hsv (h, s, v) |
| def | from_web (web_color_str) |
Static Public Attributes | |
| BLACK = None | |
| WHITE = None | |
| RED = None | |
| GREEN = None | |
| BLUE = None | |
| YELLOW = None | |
| ORANGE = None | |
| PURPLE = None | |
| CYAN = None | |
| TRANSPARENT = None | |
| def vex.Color.__init__ | ( | self, | |
| color_value | |||
| ) |
Creates a color using a 0xRRGGBB color value.
| def vex.Color.set_rgb | ( | self, | |
| r, | |||
| g, | |||
| b | |||
| ) |
| def vex.Color.set_value | ( | self, | |
| color_value | |||
| ) |
| def vex.Color.set_hsv | ( | self, | |
| hue, | |||
| saturation, | |||
| value | |||
| ) |
Creates a color using hue, saturation, and brightness values.
| hue | An integer from 0 to 360 that represents the hue of the color. |
| saturation | A double from 0.0 to 1.0 that represents the saturation of the color. |
| value | A double from 0.0 to 1.0 that represents the brightness of the color. |
| def vex.Color.set_web | ( | self, | |
| web_color_str | |||
| ) |
| def vex.Color.value | ( | self | ) |
Gets the 0xRRGGBB color value.
| def vex.Color.is_transparent | ( | self | ) |
Gets the state of the color's transparency.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
1.8.15