movis.layer.drawing.Ellipse#
- class movis.layer.drawing.Ellipse(size: tuple[float, float] = (100.0, 100.0), color: tuple[int, int, int] | str | None = None, contents: Sequence[FillProperty | StrokeProperty] = (), duration: float = 1000000.0)[source]#
Draw an ellipse.
- Args:
- size:
The size of the ellipse with a tuple of
(width, height).- color:
The color of the ellipse with a tuple of
(r, g, b), or a string representing a color name (e.g.,"#ff0000" or "red"). IfNone, this layer uses thecontentsargument to draw the ellipse.- contents:
A sequence of
FillPropertyorStrokePropertyobjects, which will be drawn on top of the ellipse. If an empty sequence is given, the ellipse will be filled with thecolorargument.- duration:
The duration for which the ellipse should be displayed.
- Animateable Attributes:
size
Methods
- get_key(time: float) tuple[Hashable, ...]#
Returns a tuple of hashable values that represent the state of the instance at a given time.
Attributes
attributesA dictionary of attributes that are used to generate cache keys.
duration