manim.mobject.types.point_cloud_mobject.PMobject

class PMobject(stroke_width=4, **kwargs)[source]

Bases: manim.mobject.mobject.Mobject

Methods

add_points

points must be a Nx3 numpy array, as must rgbas if it is not None

align_points_with_larger

fade_to

filter_out

get_all_rgbas

get_array_attrs

get_color

get_point_mobject

The simplest mobject to be transformed to or from self.

get_stroke_width

ingest_submobjects

interpolate_color

match_colors

point_from_proportion

pointwise_become_partial

reset_points

set_color

Condition is function which takes in one arguments, (x, y, z).

set_color_by_gradient

set_colors_by_radial_gradient

set_stroke_width

sort_points

function is any map from R^3 to R

thin_out

Removes all but every nth point for n = factor

Attributes

animate

Used to animate the application of a method.

add_points(points, rgbas=None, color=None, alpha=1)[source]

points must be a Nx3 numpy array, as must rgbas if it is not None

get_point_mobject(center=None)[source]

The simplest mobject to be transformed to or from self. Should by a point of the appropriate type

set_color(color='#FFFF00', family=True)[source]

Condition is function which takes in one arguments, (x, y, z). Here it just recurses to submobjects, but in subclasses this should be further implemented based on the the inner workings of color

sort_points(function=<function PMobject.<lambda>>)[source]

function is any map from R^3 to R

thin_out(factor=5)[source]

Removes all but every nth point for n = factor