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: Line

Methods

generate_points

重写 generate_points,使其不再生成直线,而是生成螺旋线

put_start_and_end_on

当位置改变时(如被 Updater 调用),重新生成点

Attributes

always

Call a method on a mobject every frame.

animate

Used to animate the application of any method of self.

animation_overrides

color

depth

The depth of the mobject.

fill_color

If there are multiple colors (for gradient) this returns the first one

height

The height of the mobject.

n_points_per_curve

sheen_factor

stroke_color

width

The 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
generate_points()[source]

重写 generate_points,使其不再生成直线,而是生成螺旋线

joint_type: LineJointType
make_smooth_after_applying_functions: bool
n_points_per_cubic_curve: int
pre_function_handle_to_anchor_scale_factor: float
put_start_and_end_on(start, end)[source]

当位置改变时(如被 Updater 调用),重新生成点

shade_in_3d: bool
submobjects: list[VMobject]
tip_length: float
tip_style: dict
tolerance_for_point_equality: float