Mobject class

Implementers

Constructors

Mobject({Color color = WHITE, String? name, Mobject? target})
Mobject.copyFrom(Mobject mob)

Properties

color Color
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
length int
no setter
name String
getter/setter pair
points List<Vector3>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
submobjects List<Mobject>
getter/setter pair
target Mobject?
getter/setter pair
updaters List<Updater>
getter/setter pair
updatingSuspended bool
getter/setter pair

Methods

add(List<Mobject> mobjects) → void
addNMoreSubmobjects(int n) → void
addToBack(List<Mobject> mobjects) → void
addToFront(List<Mobject> mobjects) → void
addUpdater(Updater updater, {int? index, bool callUpdater = true}) → void
alignData(Mobject mob) → void
alignOnBorder(Vector3 direction, {double? buffer}) → void
alignPoints(Mobject mob) → void
alignPointsWithLarger(Mobject largerMob) → void
alignSubmobjects(Mobject mob2) → void
alignToMobject(Mobject mob, {Vector3? direction}) → void
alignToPoint(Vector3 point, {Vector3? direction}) → void
applyComplexFunction(Complex func(Complex)) → void
applyFunction(Vector3 func(Vector3)) → void
applyMatrix(Array mat) → void
applyOverPoints({required Vector3 func(Vector3), Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
applyToFamily(Mobject func(Mobject), {bool useFamilyWithPoints = true}) → void
arrange({Vector3 direction = RIGHT, bool center = true, double buffer = DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, Vector3 alignedEdge = ORIGIN, Vector3 coordinateMask = const Vector3(1, 1, 1)}) → void
arrangeInGrid({int? numRows, int? numCols, bool center = true, double buffer = DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, Vector3 alignedEdge = ORIGIN, Vector3 coordinateMask = const Vector3(1, 1, 1)}) → void
become(Mobject mob, {bool copySubmobjects = true}) → void
becomePartial(Mobject mob, double a, double b) → void
center({Vector3 mask = const Vector3(1, 1, 1)}) → void
centerOnXAxis() → void
centerOnYAxis() → void
centerOnZAxis() → void
clearUpdaters({bool recursive = true}) → void
copy() Mobject
createGroup<MobjectType extends Mobject>(List<MobjectType> mobs) Mobject
fade({double darkness = 0.5, bool family = true}) → void
fadeTo(Color color, double alpha, {bool family = true}) → void
flip({Vector3 axis = UP, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
generatePoints() → void
generateTarget() Mobject
getAllPoints() List<Vector3>
getBottom() Vector3
getBoundaryPoint(Vector3 direction) Vector3
getCenter() Vector3
getCenterOfMass() Vector3
getColor() Color
getCoord(int dim, {Vector3? direction}) double
getCorner(Vector3 corner) Vector3
getCriticalPoint(Vector3 direction) Vector3
getDepth() double
getEdgeCenter(Vector3 edge) Vector3
getEnd() Vector3
getExtremumAlongDim({List<Vector3>? points, int dim = 0, int key = 0}) double
getFamily() List<Mobject>
getFamilyUpdaters() List<Updater>
getFamilyWithPoints() List<Mobject>
getHeight() double
getLeft() Vector3
getNadir() Vector3
getName() String
getNumPoints() int
getPieces(int numPieces) Group
getPointMobject({Vector3? center}) Mobject
getPointsDefiningBoundary() List<Vector3>
getPos({Vector3? direction}) Vector3
getRight() Vector3
getStart() Vector3
getStartAndEnd() Tuple2<Vector3, Vector3>
getTop() Vector3
getUpdaters() List<Updater>
getWidth() double
getX({Vector3? direction}) double
getY({Vector3? direction}) double
getZ({Vector3? direction}) double
getZenith() Vector3
getZIndexReferencePoint() Vector3
hasNoPoints() bool
hasPoints() bool
hasUpdaters() bool
initColors() → void
interpolate(Mobject a, Mobject b, double alpha, {PathFunc? pathFunc}) → void
interpolateColor(Mobject a, Mobject b, double alpha) → void
isInside(Vector3 pt, {double buff = SMALL_BUFFER}) bool
isOffScreen() bool
lengthOverDim(int dim) double
matchColor(Mobject mob) → void
matchCoord(Mobject mob, int dim, {Vector3? direction}) → void
matchDepth(Mobject mob, {Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint, bool stretch = false}) → void
matchDimSize(Mobject mob, int dim, {Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint, bool stretch = false}) → void
matchHeight(Mobject mob, {Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint, bool stretch = false}) → void
matchUpdaters(Mobject mob) → void
matchWidth(Mobject mob, {Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint, bool stretch = false}) → void
matchX(Mobject mob, {Vector3? direction}) → void
matchY(Mobject mob, {Vector3? direction}) → void
matchZ(Mobject mob, {Vector3? direction}) → void
moveToMobject(Mobject target, {Vector3? alignedEdge, Vector3? coordinateMask}) → void
moveToPoint(Vector3 target, {Vector3? alignedEdge, Vector3? coordinateMask}) → void
nextToMobject(Mobject mobject, {Vector3 direction = RIGHT, double buffer = DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, Vector3 alignedEdge = ORIGIN, Vector3 coordinateMask = const Vector3(1, 1, 1)}) → void
nextToPoint(Vector3 targetPoint, {Vector3 direction = RIGHT, double buffer = DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, Vector3 alignedEdge = ORIGIN, Vector3 coordinateMask = const Vector3(1, 1, 1)}) → void
nonEmptySubmobjects() List<Mobject>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nullPointAlign(Mobject m2) → void
pointFromProportion(double alpha) Vector3
pointwiseBecomePartial(Mobject mob, double a, double b) → void
pushSelfIntoSubmobjects() → void
putStartAndEndOn(Vector3 start, Vector3 end) → void
remove(List<Mobject> mobjects) → void
removeUpdater(Updater updater) → void
repeat(int count) → void
replace(Mobject mob, {int dimToMatch = 0, bool stretch = false}) → void
rescaleToFit(double length, int dim, {bool stretch = false, Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint}) → void
resetPoints() → void
resumeUpdating({bool recursive = true}) → void
reversePoints() → void
reverseSubmobjects({bool recursive = false}) → void
rotate(double angle, {Vector3 axis = OUT, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
rotateAboutOrigin(double angle, {Vector3 axis = OUT}) → void
scale(Vector3 scaleFactor, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
scaleUniformly(double scaleFactor, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
setColor({required Color color, bool family = true}) → void
setColorByGradient(List<Color> colors) → void
setColorByRadialGradient({Vector3? center, double? radius, required Color innerColor, required Color outerColor}) → void
setCoord(double value, int dim, {Vector3? direction}) → void
setDepth(double depth, {bool stretch = false, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
setHeight(double height, {bool stretch = false, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
setSubmobjectColorsByGradient(List<Color> colors) → void
setSubmobjectColorsByRadialGradient({Vector3? center, double? radius, required Color innerColor, required Color outerColor}) → void
setWidth(double width, {bool stretch = false, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
setX(double x, {Vector3? direction}) → void
setY(double y, {Vector3? direction}) → void
setZ(double z, {Vector3? direction}) → void
shift(Vector3 delta) → void
shiftOntoScreen({double? buffer}) → void
shuffle({bool recursive = false}) → void
sort({double pointToNumFunc(Vector3)?, double keyFunc(Mobject)?}) → void
spaceOutSubmobjects({double factor = 1.5, Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint}) → void
split() List<Mobject>
stretch(double scaleFactor, int dim, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
stretchToFitDepth(double depth, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
stretchToFitHeight(double height, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
stretchToFitWidth(double width, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
surround(Mobject mob, {int dimToMatch = 0, bool stretch = false, double? buffer}) → void
suspendUpdating({bool recursive = true}) → void
throwErrorIfNoPoints(String? method) → void
toCorner({Vector3 corner = DL, double buffer = DEFAULT_MOBJECT_TO_EDGE_BUFFER}) → void
toEdge({Vector3 edge = LEFT, double buffer = DEFAULT_MOBJECT_TO_EDGE_BUFFER}) → void
toOriginalColor() → void
toString() String
A string representation of this object.
override
update({double dt = 0, bool recursive = true}) → void
wag({Vector3 direction = RIGHT, Vector3 axis = DOWN, double wagFactor = 1.0}) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](int i) Mobject