CapacitiveSensor

class manim_eng.components.capacitors.CapacitiveSensor(**kwargs: Any)

Bases: SensorModifier, Capacitor

Circuit symbol for a capacitive sensor.

Attributes

CapacitiveSensor.animate

Used to animate the application of any method of self.

CapacitiveSensor.animation_overrides

CapacitiveSensor.color

CapacitiveSensor.depth

The depth of the mobject.

CapacitiveSensor.fill_color

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

CapacitiveSensor.height

The height of the mobject.

CapacitiveSensor.left

Return the left-hand terminal of the component.

CapacitiveSensor.n_points_per_curve

CapacitiveSensor.right

Return the right-hand terminal of the component.

CapacitiveSensor.sheen_factor

CapacitiveSensor.stroke_color

CapacitiveSensor.terminals

The list of terminals of the component.

CapacitiveSensor.width

The width of the mobject.

_construct() None

Construct the shape of the component.

Code to build the component’s symbol goes in here and not in __init__() (contrary to Manim’s standard). This is because the base Component class has to perform initialisation both before (to set up the groups etc.) and after (to set the anchor positions for annotations) the component’s shape setup.