-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Remove the word normalized, remove minimum/maximum. #161106
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
Conversation
| : this._fromARGBC(value >> 24, value >> 16, value >> 8, value, ColorSpace.sRGB); | ||
|
|
||
| /// Construct a color with normalized color components from `0.0` to `1.0`. | ||
| /// Construct a color with color components with a minimum value of `0.0`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can't say minimum value of 0.0 either, the numbers go negative in extended SRGB.
| /// components to be be supported. The values will be normalized relative to | ||
| /// the [ColorSpace] argument. | ||
| /// Color components allows arbitrary bit depths for color components to be be | ||
| /// supported. The values are interpted relative to the [ColorSpace] argument. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /// supported. The values are interpted relative to the [ColorSpace] argument. | |
| /// supported. The values are interpreted relative to the [ColorSpace] argument. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| /// | ||
| /// A value of `0.0` represents no red in this color. A value of `1.0` | ||
| /// represents the maximum amount of red. | ||
| /// A value of `0.0` represents no red in this color. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove this too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. PTAL.
gaaclarke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks!
| /// | ||
| /// A value of `0.0` means this color is fully transparent. A value of `1.0` | ||
| /// means this color is fully opaque. | ||
| /// The alpha channel of this color. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it was more clear before, if incorrect. I think we should provide some guidance on what each of a, r, and g mean and what are their bounds. Maybe something like:
For example, in the sRGB color space, where 0 is the maximum value and 255 is the minimum, a would be a value between 0 and 1.
Post-submit feedback from #160798 (review).