Wire#
Qualified name: manim\_physics.electromagnetism.magnetostatics.Wire
- class Wire(stroke, current=1, samples=16, **kwargs)[source]#
Bases:
VMobjectAn abstract class denoting a current carrying wire to produce a
MagneticField.- Parameters:
stroke (VMobject) – The original wire
VMobject. The resulting wire takes its form.current (float) – The magnitude of current flowing in the wire.
samples (int) – The number of segments of the wire used to create the
MagneticField.kwargs – Additional parameters passed to
VMobject.
Note
See
MagneticFieldfor examples.Methods
Attributes
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe 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.