manim.mobject.vector_field

Mobjects representing vector fields.

Classes

AnimatedStreamLines

ShowPassingFlashWithThinningStrokeWidth

StreamLines

VectorField

Functions

get_color_field_image_file(scalar_func, min_value=0, max_value=2, colors=['#1C758A', '#83C167', '#FFFF00', '#FC6255'])[source]
Parameters
  • scalar_func (Callable[[numpy.ndarray], numpy.ndarray]) –

  • min_value (int) –

  • max_value (int) –

  • colors (list) –

Return type

str

get_colored_background_image(scalar_field_func, number_to_rgb_func)[source]
Parameters
  • scalar_field_func (Callable) –

  • number_to_rgb_func (Callable) –

Return type

<module ‘PIL.Image’ from ‘/home/docs/checkouts/readthedocs.org/user_builds/manimce/envs/stable/lib/python3.8/site-packages/PIL/Image.py’>

get_rgb_gradient_function(min_value=0, max_value=1, colors=['#58C4DD', '#FC6255'], flip_alphas=True)[source]
Parameters
  • min_value (int) –

  • max_value (int) –

  • colors (list) –

  • flip_alphas (bool) –

Return type

Callable[[numpy.ndarray], float]

move_along_vector_field(mobject, func)[source]
Parameters
Return type

manim.mobject.mobject.Mobject

move_points_along_vector_field(mobject, func)[source]
Parameters
Return type

manim.mobject.mobject.Mobject

move_submobjects_along_vector_field(mobject, func)[source]
Parameters
Return type

manim.mobject.mobject.Mobject