lerpTo method

DisplayFace lerpTo(
  1. DisplayFace other,
  2. double t
)

This face t of the way to other (theme transitions between two themes of the same family); switches at the midpoint by default.

Implementation

DisplayFace lerpTo(DisplayFace other, double t) => t < 0.5 ? this : other;