VSpring¶
Qualified name: manim\_pymunk.custom\_mobjects.v\_spring.VSpring
- class VSpring(start=array([-1., 0., 0.]), end=array([1., 0., 0.]), turns=18, amplitude=0.1, end_length=0.2, stroke_width=1, color=ManimColor('#FFFFFF'), **kwargs)[source]¶
Bases:
LineMethods
重写 generate_points,使其不再生成直线,而是生成螺旋线
当位置改变时(如被 Updater 调用),重新生成点
Attributes
alwaysCall a method on a mobject every frame.
animateUsed to animate the application of any method of
self.colordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.
- _abc_impl = <_abc._abc_data object>¶
- _bezier_t_values: npt.NDArray[float]¶
- _original__init__(start=array([-1., 0., 0.]), end=array([1., 0., 0.]), turns=18, amplitude=0.1, end_length=0.2, stroke_width=1, color=ManimColor('#FFFFFF'), **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- animation_overrides = {}¶
- background_image: Image | str | None¶
- background_stroke_color: ManimColor¶
- background_stroke_opacity: float¶
- background_stroke_width: float¶
- cap_style: CapStyleType¶
- close_new_points: bool¶
- joint_type: LineJointType¶
- make_smooth_after_applying_functions: bool¶
- n_points_per_cubic_curve: int¶
- pre_function_handle_to_anchor_scale_factor: float¶
- shade_in_3d: bool¶
- submobjects: list[VMobject]¶
- tip_length: float¶
- tip_style: dict¶
- tolerance_for_point_equality: float¶