anki_vector.lights¶
Helper routines for dealing with Vector’s Cube lights and colors.
Functions
  | 
Classes
  | 
Applies transforms to make Vector’s Cube lights and colors appear as intended, by limiting maximum channel intensity.  | 
  | 
Lights are used with Vector’s Cube.  | 
- 
anki_vector.lights.MAX_COLOR_PROFILE= <anki_vector.lights.ColorProfile object>¶ Color profile to get the maximum possible brightness out of each LED.
- Type
 
- 
anki_vector.lights.blue_light= <anki_vector.lights.Light object>¶ A steady blue colored LED light.
- Type
 
- 
anki_vector.lights.cyan_light= <anki_vector.lights.Light object>¶ A steady cyan colored LED light.
- Type
 
- 
anki_vector.lights.green_light= <anki_vector.lights.Light object>¶ A steady green colored LED light.
- Type
 
- 
anki_vector.lights.magenta_light= <anki_vector.lights.Light object>¶ A steady magenta colored LED light.
- Type
 
- 
anki_vector.lights.off_light= <anki_vector.lights.Light object>¶ A steady off (non-illuminated LED light).
- Type
 
- 
anki_vector.lights.red_light= <anki_vector.lights.Light object>¶ A steady red colored LED light.
- Type
 
- 
anki_vector.lights.white_light= <anki_vector.lights.Light object>¶ A steady white colored LED light.
- Type
 
- 
anki_vector.lights.yellow_light= <anki_vector.lights.Light object>¶ A steady yellow colored LED light.
- Type
 
- 
class 
anki_vector.lights.Color(int_color=None, rgb=None, name=None)¶ A Color to be used with a Light or Vector’s screen.
Either int_color or rgb may be used to specify the actual color. Any alpha components (from int_color) are ignored - all colors are fully opaque.
- Parameters
 
- 
class 
anki_vector.lights.ColorProfile(red_multiplier, green_multiplier, blue_multiplier)¶ Applies transforms to make Vector’s Cube lights and colors appear as intended, by limiting maximum channel intensity.
- Parameters
 
- 
class 
anki_vector.lights.Light(on_color=<anki_vector.color.Color object>, off_color=<anki_vector.color.Color object>, on_period_ms=250, off_period_ms=0, transition_on_period_ms=0, transition_off_period_ms=0)¶ Lights are used with Vector’s Cube.
Lights may either be “on” or “off”, though in practice any colors may be assigned to either state (including no color/light).
- 
property 
off_period_ms¶ The number of milliseconds the light should be “off” for for each cycle.
- Return type
 
- 
property 
on_period_ms¶ The number of milliseconds the light should be “on” for for each cycle.
- Return type
 
- 
property 
transition_off_period_ms¶ The number of milliseconds to take to transition the light to the off color.
- Return type
 
- 
property