become method

void become(
  1. Mobject mob, {
  2. bool copySubmobjects = true,
})

Implementation

void become(Mobject mob, {bool copySubmobjects = true}) {
  alignData(mob);

  for (var sm in IterableZip([getFamily(), mob.getFamily()])) {
    var sm1 = sm[0];
    var sm2 = sm[1];

    sm1.points = [...sm2.points];
    sm1.interpolateColor(sm1, sm2, 1);
  }
}