From 2e6c295603dc3796770e159c74270c7f63bbc64a Mon Sep 17 00:00:00 2001 From: Hugo Pezziardi Date: Thu, 21 Dec 2023 19:14:06 +0100 Subject: [PATCH] :recycle: (GEK): Refactor Pairing breathe animation with Gradient --- .../Specialized/Pairing/PairingView+RobotManager.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/GameEngineKit/Sources/_NewSystem/Exercises/Specialized/Pairing/PairingView+RobotManager.swift b/Modules/GameEngineKit/Sources/_NewSystem/Exercises/Specialized/Pairing/PairingView+RobotManager.swift index f9f8ac26e2..e3c9832df0 100644 --- a/Modules/GameEngineKit/Sources/_NewSystem/Exercises/Specialized/Pairing/PairingView+RobotManager.swift +++ b/Modules/GameEngineKit/Sources/_NewSystem/Exercises/Specialized/Pairing/PairingView+RobotManager.swift @@ -76,8 +76,7 @@ extension PairingView { self.updateLightIntensity() DispatchQueue.main.asyncAfter(deadline: .now() + self.lightIntensityChangeDuration) { - let shadeOfColor: Robot.Color = .init(fromGradient: (.black, .lightBlue), at: self.lightIntensity) - self.robot.shine(.all(in: shadeOfColor)) + self.robot.shine(.all(in: Robot.Gradient(fromColors: .black, .white).color(at: self.lightIntensity))) self.breathe() } }