Skip to content

Commit 908d583

Browse files
committed
♻️ (GEK): Refactor Pairing breathe animation with Gradient
1 parent 7187cd7 commit 908d583

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Modules/GameEngineKit/Sources/_NewSystem/Exercises/Specialized/Pairing/PairingView+RobotManager.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ extension PairingView {
7676
self.updateLightIntensity()
7777

7878
DispatchQueue.main.asyncAfter(deadline: .now() + self.lightIntensityChangeDuration) {
79-
let shadeOfColor: Robot.Color = .init(fromGradient: (.black, .lightBlue), at: self.lightIntensity)
80-
self.robot.shine(.all(in: shadeOfColor))
79+
self.robot.shine(.all(in: Robot.Gradient(fromColors: .black, .white).color(at: self.lightIntensity)))
8180
self.breathe()
8281
}
8382
}

0 commit comments

Comments
 (0)