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

Ensure Stars Render in White #281

Merged
merged 3 commits into from
Dec 18, 2024
Merged

Ensure Stars Render in White #281

merged 3 commits into from
Dec 18, 2024

Conversation

AdrienBousquieEPFL
Copy link
Contributor

Summary

This pull request standardizes the color handling for stars in the project, ensuring that they render with a default white color unless explicitly specified.

Changes

  • Updated Star.kt:
    • Changed the color property to use an IntArray representation for RGBA with a default value of intArrayOf(255, 255, 255, 255) (white).
  • Updated CircleRenderer.kt:
    • Refactored color handling logic to align with the new IntArray RGBA representation.
    • Simplified vertex color application logic.
  • Updated StarsLoader.kt:
    • Removed unnecessary color initialization when creating Star instances.

Fixed incorrect ordering of color components in `addColor` method within `ColorBuffer.kt`.
Updated `Star.kt` to set a default white color (`intArrayOf(255, 255, 255, 255)`) for stars.
Refactored `CircleRenderer.kt` to align with the updated color handling logic using `IntArray`.
@AdrienBousquieEPFL AdrienBousquieEPFL self-assigned this Dec 16, 2024
@AdrienBousquieEPFL AdrienBousquieEPFL linked an issue Dec 16, 2024 that may be closed by this pull request
Copy link
Contributor

@mehdi-hamirifou mehdi-hamirifou left a comment

Choose a reason for hiding this comment

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

Great job! The new implementation is straightforward, efficient, and ensures the stars display in white as intended. The changes are well-executed and meet the project requirements.

Approved for merge.

@mehdi-hamirifou mehdi-hamirifou merged commit 2976954 into main Dec 18, 2024
3 checks passed
@rihabbelmekki rihabbelmekki deleted the feature/269-white-star branch December 20, 2024 04:44
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.

fix: change star design
2 participants