inter method

LayerColor inter(
  1. LayerColor other,
  2. double factor
)

interpolate between two colors factor = 1 will return the other color, 0 will return the same color

Implementation

LayerColor inter(LayerColor other, double factor) => LayerColor(
    back: this.back.inter(other.back, factor),
    front: this.front.inter(other.front, factor),
    border: this.border.inter(other.border, factor));