movis.layer.drawing.StrokeProperty#
- class movis.layer.drawing.StrokeProperty(color: tuple[int, int, int] | str, width: float = 1.0, opacity: float = 1.0)[source]#
A property for stroking a shape.
- Args:
- color:
The color of the shape with a tuple of
(r, g, b)
or a string representing a color name (e.g.,"#ff0000" or "red"
).- width:
The width of the stroke.
- opacity:
The opacity of the shape in the range of
[0, 1]
.
Attributes
color
opacity
width