Charge#
Qualified name: manim\_physics.electromagnetism.electrostatics.Charge
- class Charge(magnitude=1, point=array([0., 0., 0.]), add_glow=True, **kwargs)[source]#
Bases:
VGroupAn electrostatic charge object to produce an
ElectricField.- Parameters:
magnitude (float) – The strength of the electrostatic charge.
point (np.ndarray) – The position of the charge.
add_glow (bool) – Whether to add a glowing effect. Adds rings of varying opacities to simulate glowing effect.
kwargs – Additional parameters to be passed to
VGroup.
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.