GData.Color¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
blue |
r/w |
blue color intensity, from 0–255 |
|
green |
r/w |
green color intensity, from 0–255 |
|
red |
r/w |
red color intensity, from 0–255 |
Methods¶
class |
|
Details¶
- class GData.Color¶
Describes a color, such as used in the Google Calendar interface to differentiate calendars.
- classmethod from_hexadecimal(hexadecimal)¶
- Parameters:
hexadecimal (
str
) – a hexadecimal color string- Returns:
True
on success,False
otherwise- color:
- Return type:
(
bool
, color:GData.Color
)
Parses hexadecimal and returns a
GData.Color
describing it in color.hexadecimal should be in the form
#rrggbb
, where rr is a two-digit hexadecimal red intensity value, gg is green and bb is blue. The hash is optional.