VMobject.copyFrom constructor

VMobject.copyFrom(
  1. VMobject vmob
)

Implementation

VMobject.copyFrom(VMobject vmob)
    : fillColors = [...vmob.fillColors?.map((c) => c.copy()) ?? []],
      strokeColors = [...vmob.strokeColors?.map((c) => c.copy()) ?? []],
      backgroundStrokeColors = [
        ...vmob.backgroundStrokeColors?.map((c) => c.copy()) ?? []
      ],
      strokeWidth = vmob.strokeWidth,
      backgroundStrokeWidth = vmob.backgroundStrokeWidth,
      closeNewPoints = vmob.closeNewPoints,
      preFunctionHandleToAnchorScaleFactor =
          vmob.preFunctionHandleToAnchorScaleFactor,
      makeSmoothAfterApplyingFunctions =
          vmob.makeSmoothAfterApplyingFunctions,
      toleranceForPointEquality = vmob.toleranceForPointEquality,
      nPointsPerCurve = vmob.nPointsPerCurve,
      super.copyFrom(vmob);