Annotations¶
keyed.annotations
¶
underline
¶
underline(obj, offset=20, color=(1, 1, 1), alpha=1, dash=None, operator=OPERATOR_OVER, line_width=1)
Add an underline effect.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
offset
|
float
|
Distance below baseline. |
20
|
color
|
HasValue[Color] | tuple[float, float, float]
|
Color of the line. |
(1, 1, 1)
|
alpha
|
HasValue[float]
|
Transparency. |
1
|
dash
|
tuple[Sequence[float], float] | None
|
Dash specification. |
None
|
operator
|
Operator
|
Cairo composition operator. |
OPERATOR_OVER
|
line_width
|
HasValue[float]
|
Strike width of underline. |
1
|
Returns:
Type | Description |
---|---|
Line
|
Line object representing the underline. |