Colors to be used with a light or Vector’s screen.


Color([int_color, rgb, name]) A Color to be used with a Light or Vector’s screen.
class anki_vector.color.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.

  • int_color (Optional[int]) – A 32 bit value holding the binary RGBA value (where A is ignored and forced to be fully opaque).
  • rgb (Optional[tuple]) – A tuple holding the integer values from 0-255 for (reg, green, blue)
  • name (Optional[str]) – A name to assign to this color.

The encoded integer value of the color.

Return type:int

bytes[] – Two bytes representing an int16 color with rgb565 encoding.

This format reflects the robot’s Screen color range, and performing this conversion will reduce network traffic when sending Screen data. = <anki_vector.color.Color object>

Color – Blue color instance.

anki_vector.color.cyan = <anki_vector.color.Color object>

Color – Cyan color instance. = <anki_vector.color.Color object>

Color – Green color instance.

anki_vector.color.magenta = <anki_vector.color.Color object>

Color – Magenta color instance. = <anki_vector.color.Color object>

Color – Instance representing no color (i.e., lights off). = <anki_vector.color.Color object>

Color – Red color instance.

anki_vector.color.white = <anki_vector.color.Color object>

Color – White color instance.

anki_vector.color.yellow = <anki_vector.color.Color object>

Color – Yellow color instance.