controltheorylib.mech_vis.damper
- damper = <function damper>[source]
Generates a damper shape as a Manim VGroup between two points.
- Parameters:
start (np.ndarray | Sequence[float]) – The start point of the damper.
end (np.ndarray | Sequence[float]) – The end point of the damper.
width (float) – Width of the damper box.
fluid_color (ManimColor | None) – Color of the fluid. If None, defaults to a predefined color.
**kwargs (Any) – Additional keyword arguments passed to Manim’s Line constructor (e.g., stroke_width, opacity).
- Returns:
A Manim VGroup containing the damper box and damper rod.
- Return type:
VGroup