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

common.utils.colors #2623

Conversation

Maravedis
Copy link
Contributor

Solves #2602

Would have loved to type the numeric values in the various array types to be [0..1], but unfortunately, it's not that simple.

@Maravedis Maravedis requested a review from a team as a code owner July 10, 2024 13:17
Copy link
Collaborator

@JPMeehan JPMeehan left a comment

Choose a reason for hiding this comment

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

Minor linting change

/**
* The color represented as a linear RGB array.
* Assumes r, g, and b are contained in the set [0, 1] and returns linear r, g, and b in the set [0, 1].
* @link https://en.wikipedia.org/wiki/SRGB#Transformation
Copy link
Collaborator

Choose a reason for hiding this comment

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

Links must be wrapped in brackets {}

/**
* Create a Color instance (sRGB) from a linear rgb array.
* Assumes r, g, and b are contained in the set [0, 1].
* @link https://en.wikipedia.org/wiki/SRGB#Transformation
Copy link
Collaborator

Choose a reason for hiding this comment

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

Links must be wrapped in brackets {}

@JPMeehan JPMeehan merged commit 83ace45 into League-of-Foundry-Developers:v12/main Jul 11, 2024
1 of 3 checks passed
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.

2 participants