Skip to content

Commit

Permalink
♻️ (GEK): Refactor Pairing breathe animation with Gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
HPezz committed Jan 11, 2024
1 parent 7187cd7 commit 908d583
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 908d583

Please sign in to comment.