manim.mobject.shape_matchers.BackgroundRectangle

class BackgroundRectangle(mobject, color='#000000', stroke_width=0, stroke_opacity=0, fill_opacity=0.75, buff=0, **kwargs)[source]

Bases: manim.mobject.shape_matchers.SurroundingRectangle

Methods

get_fill_color

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

pointwise_become_partial

Given two bounds a and b, transforms the points of the self vmobject into the points of the vmobject passed as parameter with respect to the bounds.

set_style

Attributes

animate

Used to animate the application of a method.

get_fill_color()[source]

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

pointwise_become_partial(mobject, a, b)[source]

Given two bounds a and b, transforms the points of the self vmobject into the points of the vmobject passed as parameter with respect to the bounds. Points here stand for control points of the bezier curves (anchors and handles)

Parameters
  • vmobject (VMobject) – The vmobject that will serve as a model.

  • a (float) – upper-bound.

  • b (float) – lower-bound