pythagoras.style.draw module¶
- class pythagoras.style.draw.Fill(color: Color | None)[source]¶
Bases:
POPropertyFill style for shapes.
- Variables:
color (pythagoras.style.color.Color | None) – Fill color. If
None, the shape is not filled.
- class pythagoras.style.draw.LineWidth(width: float, unit: str | None = 'pt')[source]¶
Bases:
POPropertyLine width specification for strokes.
- Variables:
width (float) – Line width magnitude.
unit (str | None) – Unit for the width (default: ‘pt’).
- tikz() str[source]¶
Compiles the property into TikZ syntax.
- Returns:
The corresponding TikZ property.
- unit: str | None = 'pt'¶
- width: float¶
- class pythagoras.style.draw.Stroke(color: Color | None)[source]¶
Bases:
POPropertyStroke (outline) style for shapes.
- Variables:
color (pythagoras.style.color.Color | None) – Stroke color. If
None, no stroke is drawn.