@@ -55,26 +55,27 @@ class Label(LabelBase):
55
55
Must include a capital M for measuring character size.
56
56
:type font: ~FontProtocol
57
57
:param str text: Text to display
58
- :param int color: Color of all text in RGB hex
59
- :param int background_color: Color of the background, use `None` for transparent
58
+ :param int|Tuple(int, int, int) color: Color of all text in HEX or RGB
59
+ :param int|Tuple(int, int, int)|None background_color: Color of the background, use `None`
60
+ for transparent
60
61
:param float line_spacing: Line spacing of text to display
61
62
:param bool background_tight: Set `True` only if you want background box to tightly
62
63
surround text. When set to 'True' Padding parameters will be ignored.
63
64
:param int padding_top: Additional pixels added to background bounding box at top
64
65
:param int padding_bottom: Additional pixels added to background bounding box at bottom
65
66
:param int padding_left: Additional pixels added to background bounding box at left
66
67
:param int padding_right: Additional pixels added to background bounding box at right
67
- :param (float,float) anchor_point: Point that anchored_position moves relative to.
68
+ :param Tuple (float, float) anchor_point: Point that anchored_position moves relative to.
68
69
Tuple with decimal percentage of width and height.
69
70
(E.g. (0,0) is top left, (1.0, 0.5): is middle right.)
70
- :param (int,int) anchored_position: Position relative to the anchor_point. Tuple
71
+ :param Tuple (int, int) anchored_position: Position relative to the anchor_point. Tuple
71
72
containing x,y pixel coordinates.
72
73
:param int scale: Integer value of the pixel scaling
73
74
:param bool save_text: Set True to save the text string as a constant in the
74
75
label structure. Set False to reduce memory use.
75
76
:param bool base_alignment: when True allows to align text label to the baseline.
76
77
This is helpful when two or more labels need to be aligned to the same baseline
77
- :param (int,str) tab_replacement: tuple with tab character replace information. When
78
+ :param Tuple (int, str) tab_replacement: tuple with tab character replace information. When
78
79
(4, " ") will indicate a tab replacement of 4 spaces, defaults to 4 spaces by
79
80
tab character
80
81
:param str label_direction: string defining the label text orientation. There are 5
0 commit comments