Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hugo/feature/Add Pairing #536

Merged
merged 4 commits into from
Dec 21, 2023
Merged

hugo/feature/Add Pairing #536

merged 4 commits into from
Dec 21, 2023

Conversation

HPezz
Copy link
Contributor

@HPezz HPezz commented Dec 13, 2023

  • ✨ (GEK): Add PlayerButton to Melody
  • 🔥 (GEK): Remove oldSystem PairingView
  • ♻️ (RobotKit): Add custom Color init rgb and gradient
  • x:sparkles: (GEK): Add Pairing views
  • ✨ (ContentKitxUIExplorer): Add Pairing activity

@HPezz HPezz requested a review from ladislas December 13, 2023 17:52
@HPezz HPezz self-assigned this Dec 13, 2023
@HPezz HPezz force-pushed the hugo/feature/Add-Pairing branch from f2c27a0 to aefaeb8 Compare December 13, 2023 17:57
@HPezz HPezz linked an issue Dec 13, 2023 that may be closed by this pull request
@HPezz HPezz force-pushed the hugo/feature/Add-Pairing branch 5 times, most recently from dd86422 to b8c25bd Compare December 20, 2023 11:47
@HPezz HPezz force-pushed the hugo/feature/Add-Pairing branch from b8c25bd to 9e23b6b Compare December 21, 2023 13:34
Copy link
Member

@ladislas ladislas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

deux petites suggestions, celle pour le gradient pouvant être faite dans une autre PR

il y a aussi ce commit qui a un x en trop dans le message

4d53b07 (#536)

Comment on lines +34 to +45
public init(fromGradient colors: (Color, Color), at position: Float) {
let positionClamped = max(min(position, 1), 0)
let (r1, g1, b1) = (Float(colors.0.robotRGB[0]), Float(colors.0.robotRGB[1]), Float(colors.0.robotRGB[2]))
let (r2, g2, b2) = (Float(colors.1.robotRGB[0]), Float(colors.1.robotRGB[1]), Float(colors.1.robotRGB[2]))

let r = UInt8(r1 + (r2 - r1) * positionClamped)
let g = UInt8(g1 + (g2 - g1) * positionClamped)
let b = UInt8(b1 + (b2 - b1) * positionClamped)

self.robotRGB = [r, g, b]
self.screenRGB = [r, g, b]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je sais plus si on en avait parlé à l'oral ou si j'avais déjà mis dans une précédente review, mais je pense que ça serait mieux de sortir ça dans une struct Gradient à part

l'idée est de créer un gradient avec le nombre de couleur que tu veux puis ensuite d'itérer dessus comme pour un array

@HPezz HPezz force-pushed the hugo/feature/Add-Pairing branch 2 times, most recently from b00378b to 0ecbd35 Compare December 21, 2023 16:25
@ladislas ladislas force-pushed the hugo/feature/Add-Pairing branch from 0ecbd35 to 2ae8a43 Compare December 21, 2023 16:29
@ladislas ladislas merged commit 7dc280e into main Dec 21, 2023
5 checks passed
@ladislas ladislas deleted the hugo/feature/Add-Pairing branch December 21, 2023 16:29
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specialized - Add Pairing Activity
2 participants