VMobject class

Inheritance
Implementers

Constructors

VMobject({Color color = WHITE})
VMobject.copyFrom(VMobject vmob)

Properties

backgroundStrokeColors List<Color>?
getter/setter pair
backgroundStrokeWidth double
getter/setter pair
closeNewPoints bool
getter/setter pair
color Color
getter/setter pairinherited
fillColors List<Color>?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
length int
no setterinherited
makeSmoothAfterApplyingFunctions bool
getter/setter pair
name String
getter/setter pairinherited
nPointsPerCurve int
getter/setter pair
points List<Vector3>
getter/setter pairinherited
preFunctionHandleToAnchorScaleFactor double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeColors List<Color>?
getter/setter pair
strokeWidth double
getter/setter pair
submobjects List<Mobject>
getter/setter pairinherited
target Mobject?
getter/setter pairinherited
toleranceForPointEquality double
getter/setter pair
updaters List<Updater>
getter/setter pairinherited
updatingSuspended bool
getter/setter pairinherited

Methods

add(List<Mobject> mobjects) → void
inherited
addCubicBezierCurve(Vector3 anchor1, Vector3 handle1, Vector3 handle2, Vector3 anchor2) → void
addCubicBezierCurveTo(Vector3 handle1, Vector3 handle2, Vector3 anchor) → void
addLineTo(Vector3 pt) → void
addNMoreSubmobjects(int n) → void
inherited
addPointsAsCorners(List<Vector3> points) → void
addQuadraticBezierCurveTo(Vector3 handle, Vector3 anchor) → void
addSmoothCurveTo(Vector3 anchorOrHandle, [Vector3? maybeAnchor]) → void
addSubpath(List<Vector3> points) → void
addToBack(List<Mobject> mobjects) → void
inherited
addToFront(List<Mobject> mobjects) → void
inherited
addUpdater(Updater updater, {int? index, bool callUpdater = true}) → void
inherited
alignColors(VMobject vmob) → void
alignData(Mobject mob) → void
inherited
alignOnBorder(Vector3 direction, {double? buffer}) → void
inherited
alignPoints(Mobject mob) → void
override
alignPointsWithLarger(Mobject largerMob) → void
inherited
alignSubmobjects(Mobject mob2) → void
inherited
alignToMobject(Mobject mob, {Vector3? direction}) → void
inherited
alignToPoint(Vector3 point, {Vector3? direction}) → void
inherited
appendPoints(List<Vector3> pts) → void
appendVectorizedMobject(VMobject mob) → void
applyComplexFunction(Complex func(Complex)) → void
inherited
applyFunction(Vector3 func(Vector3)) → void
override
applyMatrix(Array mat) → void
inherited
applyOverPoints({required Vector3 func(Vector3), Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
applyToFamily(Mobject func(Mobject), {bool useFamilyWithPoints = true}) → void
inherited
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
inherited
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
inherited
become(Mobject mob, {bool copySubmobjects = true}) → void
inherited
becomePartial(Mobject mob, double a, double b) → void
inherited
center({Vector3 mask = const Vector3(1, 1, 1)}) → void
inherited
centerOnXAxis() → void
inherited
centerOnYAxis() → void
inherited
centerOnZAxis() → void
inherited
changeAnchorMode(String mode) → void
clearPoints() → void
clearUpdaters({bool recursive = true}) → void
inherited
closePath() → void
considerPointsEquals(Vector3 a, Vector3 b) bool
considerPointsEquals2D(Vector3 a, Vector3 b) bool
copy() VMobject
override
createGroup<MobjectType extends Mobject>(List<MobjectType> mobs) Mobject
override
fade({double darkness = 0.5, bool family = true}) → void
override
fadeTo(Color color, double alpha, {bool family = true}) → void
inherited
flip({Vector3 axis = UP, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
genCubicBezierTuplesFromPoints(List<Vector3> points) List<BezierTuple>
generatePoints() → void
inherited
generateTarget() Mobject
inherited
getAllPoints() List<Vector3>
inherited
getAnchors() List<Vector3>
getAnchorsAndHandles() List<List<Vector3>>
getArcLength({int? numSamplePoints}) double
getBottom() Vector3
inherited
getBoundaryPoint(Vector3 direction) Vector3
inherited
getCenter() Vector3
inherited
getCenterOfMass() Vector3
inherited
getColor({bool stroke = false, bool backgroundStroke = false}) Color
override
getCoord(int dim, {Vector3? direction}) double
inherited
getCorner(Vector3 corner) Vector3
inherited
getCriticalPoint(Vector3 direction) Vector3
inherited
getCubicBezierTuples() List<BezierTuple>
getCubicBezierTuplesFromPoints(List<Vector3> points) List<BezierTuple>
getDashed({int numDashes = 15, double positiveSpaceRatio = 0.5, Color? color}) DashedVMobject
getDepth() double
inherited
getEdgeCenter(Vector3 edge) Vector3
inherited
getEnd() Vector3
inherited
getEndAnchors() List<Vector3>
getExtremumAlongDim({List<Vector3>? points, int dim = 0, int key = 0}) double
inherited
getFamily() List<Mobject>
inherited
getFamilyUpdaters() List<Updater>
inherited
getFamilyWithPoints() List<Mobject>
inherited
getFillColor() Color
getFillColors() List<Color>
getGradientStartAndEndPoints() Tuple2<Vector3, Vector3>
getHeight() double
inherited
getLastPoint() Vector3
getLeft() Vector3
inherited
getNadir() Vector3
inherited
getName() String
inherited
getNthCurveFunction(int n) Vector3 Function(double)
getNthCurvePoints(int n) List<Vector3>
getNumCurves() int
getNumPoints() int
inherited
getPieces(int numPieces) Group
inherited
getPointMobject({Vector3? center}) VectorizedPoint
override
getPoints() List<Vector3>
getPointsDefiningBoundary() List<Vector3>
override
getPos({Vector3? direction}) Vector3
inherited
getRight() Vector3
inherited
getStart() Vector3
inherited
getStartAnchors() List<Vector3>
getStartAndEnd() Tuple2<Vector3, Vector3>
inherited
getStrokeColor({bool background = false}) Color
getStrokeColors({bool background = false}) List<Color>
getStrokeWidth({bool background = false}) double
getStyle() VMobjectStyle
getSubcurve(double a, double b) VMobject
getSubpaths() List<SubPath>
getSubpathsFromPoints(List<Vector3> points) List<SubPath>
getSubpathsFromPoints2D(List<Vector3> points) List<SubPath>
getTop() Vector3
inherited
getUpdaters() List<Updater>
inherited
getVectorizedFamily() List<VMobject>
getWidth() double
inherited
getX({Vector3? direction}) double
inherited
getY({Vector3? direction}) double
inherited
getZ({Vector3? direction}) double
inherited
getZenith() Vector3
inherited
getZIndexReferencePoint() Vector3
inherited
hasNewPathStarted() bool
hasNoPoints() bool
inherited
hasPoints() bool
inherited
hasUpdaters() bool
inherited
initColors() → void
override
insertNCurves(int n) → void
insertNCurvesToPointList(int n, List<Vector3> points) List<Vector3>
interpolate(Mobject a, Mobject b, double alpha, {PathFunc? pathFunc}) → void
inherited
interpolateColor(Mobject _mob1, Mobject _mob2, double alpha) → void
override
isClosed() bool
isInside(Vector3 pt, {double buff = SMALL_BUFFER}) bool
inherited
isOffScreen() bool
inherited
lengthOverDim(int dim) double
inherited
makeJagged() → void
makeSmooth() → void
matchColor(Mobject mob) → void
inherited
matchCoord(Mobject mob, int dim, {Vector3? direction}) → void
inherited
matchDepth(Mobject mob, {Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint, bool stretch = false}) → void
inherited
matchDimSize(Mobject mob, int dim, {Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint, bool stretch = false}) → void
inherited
matchHeight(Mobject mob, {Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint, bool stretch = false}) → void
inherited
matchStyle(VMobject vmob, {bool family = true}) → void
matchUpdaters(Mobject mob) → void
inherited
matchWidth(Mobject mob, {Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint, bool stretch = false}) → void
inherited
matchX(Mobject mob, {Vector3? direction}) → void
inherited
matchY(Mobject mob, {Vector3? direction}) → void
inherited
matchZ(Mobject mob, {Vector3? direction}) → void
inherited
moveToMobject(Mobject target, {Vector3? alignedEdge, Vector3? coordinateMask}) → void
inherited
moveToPoint(Vector3 target, {Vector3? alignedEdge, Vector3? coordinateMask}) → void
inherited
nextToMobject(Mobject mobject, {Vector3 direction = RIGHT, double buffer = DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, Vector3 alignedEdge = ORIGIN, Vector3 coordinateMask = const Vector3(1, 1, 1)}) → void
inherited
nextToPoint(Vector3 targetPoint, {Vector3 direction = RIGHT, double buffer = DEFAULT_MOBJECT_TO_MOBJECT_BUFFER, Vector3 alignedEdge = ORIGIN, Vector3 coordinateMask = const Vector3(1, 1, 1)}) → void
inherited
nonEmptySubmobjects() List<Mobject>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nullPointAlign(Mobject m2) → void
inherited
pointFromProportion(double alpha) Vector3
override
pointwiseBecomePartial(Mobject mob, double a, double b) → void
override
pushSelfIntoSubmobjects() → void
inherited
putStartAndEndOn(Vector3 start, Vector3 end) → void
inherited
remove(List<Mobject> mobjects) → void
inherited
removeUpdater(Updater updater) → void
inherited
repeat(int count) → void
inherited
replace(Mobject mob, {int dimToMatch = 0, bool stretch = false}) → void
inherited
rescaleToFit(double length, int dim, {bool stretch = false, Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint}) → void
inherited
resetPoints() → void
inherited
resumeUpdating({bool recursive = true}) → void
inherited
reversePoints() → void
inherited
reverseSubmobjects({bool recursive = false}) → void
inherited
rotate(double angle, {Vector3 axis = OUT, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
rotateAboutOrigin(double angle, {Vector3 axis = OUT}) → void
inherited
scale(Vector3 scaleFactor, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
scaleHandleToAnchorDistances(double factor) → void
scaleUniformly(double scaleFactor, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
setAnchorsAndHandles(List<Vector3> anchor1, List<Vector3> handle1, List<Vector3> handle2, List<Vector3> anchor2) → void
setBackgroundStroke({Color? color, List<Color>? colors, double? width, bool family = true}) → void
setColor({required Color color, bool family = true}) → void
override
setColorByGradient(List<Color> colors) → void
inherited
setColorByRadialGradient({Vector3? center, double? radius, required Color innerColor, required Color outerColor}) → void
inherited
setCoord(double value, int dim, {Vector3? direction}) → void
inherited
setDepth(double depth, {bool stretch = false, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
setFill({Color? color, List<Color>? colors, bool family = true}) → void
setHeight(double height, {bool stretch = false, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
setPoints(List<Vector3> points) → void
setPointsAsCorners(List<Vector3> points) → void
setPointsSmoothly(List<Vector3> points) → void
setStroke({Color? color, List<Color>? colors, double? width, bool background = false, bool family = true}) → void
setStyle({Color? fillColor, List<Color>? fillColors, Color? strokeColor, List<Color>? strokeColors, double? strokeWidth, Color? backgroundStrokeColor, List<Color>? backgroundStrokeColors, double? backgroundStrokeWidth, bool family = true}) → void
setStyleFromVMobjectStyle(VMobjectStyle style, {bool family = true}) → void
setSubmobjectColorsByGradient(List<Color> colors) → void
inherited
setSubmobjectColorsByRadialGradient({Vector3? center, double? radius, required Color innerColor, required Color outerColor}) → void
inherited
setWidth(double width, {bool stretch = false, Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
setX(double x, {Vector3? direction}) → void
inherited
setY(double y, {Vector3? direction}) → void
inherited
setZ(double z, {Vector3? direction}) → void
inherited
shift(Vector3 delta) → void
inherited
shiftOntoScreen({double? buffer}) → void
inherited
shuffle({bool recursive = false}) → void
inherited
sort({double pointToNumFunc(Vector3)?, double keyFunc(Mobject)?}) → void
inherited
spaceOutSubmobjects({double factor = 1.5, Vector3 aboutEdge = ORIGIN, Vector3? aboutPoint}) → void
inherited
split() List<Mobject>
inherited
startNewPath(Vector3 pt) → void
stretch(double scaleFactor, int dim, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
stretchToFitDepth(double depth, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
stretchToFitHeight(double height, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
stretchToFitWidth(double width, {Vector3? aboutPoint, Vector3 aboutEdge = ORIGIN}) → void
inherited
surround(Mobject mob, {int dimToMatch = 0, bool stretch = false, double? buffer}) → void
inherited
suspendUpdating({bool recursive = true}) → void
inherited
throwErrorIfNoPoints(String? method) → void
inherited
toCorner({Vector3 corner = DL, double buffer = DEFAULT_MOBJECT_TO_EDGE_BUFFER}) → void
inherited
toEdge({Vector3 edge = LEFT, double buffer = DEFAULT_MOBJECT_TO_EDGE_BUFFER}) → void
inherited
toOriginalColor() → void
inherited
toString() String
A string representation of this object.
inherited
update({double dt = 0, bool recursive = true}) → void
inherited
wag({Vector3 direction = RIGHT, Vector3 axis = DOWN, double wagFactor = 1.0}) → void
inherited

Operators

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