NumberPlane.copyFrom constructor

NumberPlane.copyFrom(
  1. NumberPlane mob
)

Implementation

NumberPlane.copyFrom(NumberPlane mob)
    : backgroundLines = [for (var mob in mob.backgroundLines) mob.copy()],
      fadedLines = [for (var mob in mob.fadedLines) mob.copy()],
      xLineFrequency = mob.xLineFrequency,
      yLineFrequency = mob.yLineFrequency,
      fadedLineRatio = mob.fadedLineRatio,
      fadedLineStyle = mob.fadedLineStyle?.copy(),
      backgroundLineStyle = mob.backgroundLineStyle.copy(),
      super.copyFrom(mob);